Changeset 1625 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Sep 9, 2007, 1:00:49 AM (17 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-fork.c
r1609 r1625 7 7 #include "mr_str.h" 8 8 #include "mr_gettext.h" 9 #include "mr_conf.h" 9 10 10 11 #include "mondostructures.h" … … 23 24 extern char *MONDO_LOGFILE; 24 25 pid_t g_buffer_pid = 0; 25 26 extern struct mr_ar_conf *mr_conf = NULL; 26 27 27 28 /** … … 178 179 * Run a program and log its output (stdout and stderr) to the logfile. 179 180 * @param program The program to run. Passed to the shell, so you can use pipes etc. 180 * @param debug_level If @p g_loglevel is higher than this, do not log the output.181 * @param debug_level If @p log_level is higher than this, do not log the output. 181 182 * @return The exit code of @p program (depends on the command, but 0 almost always indicates success). 182 183 */ … … 205 206 } 206 207 207 if (debug_level <= g_loglevel) {208 if (debug_level <= mr_conf->log_level) { 208 209 log_if_success = TRUE; 209 210 log_if_failure = TRUE; -
branches/stable/mondo/src/common/libmondo-tools-EXT.h
r1183 r1625 15 15 #endif 16 16 extern int some_basic_system_sanity_checks(void); 17 18 19 extern int g_loglevel;20 17 21 18 -
branches/stable/mondo/src/common/libmondo-tools.c
r1609 r1625 64 64 char *g_tmpfs_mountpt = NULL; 65 65 char *g_magicdev_command = NULL; 66 67 /**68 * The default maximum level to log messages at or below.69 */70 int g_loglevel = DEFAULT_DEBUG_LEVEL;71 66 72 67 /* @} - end of globalGroup */
Note:
See TracChangeset
for help on using the changeset viewer.