summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/insmod-modutils/include/util.h2
-rw-r--r--mdk-stage1/insmod-modutils/util/logger.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/mdk-stage1/insmod-modutils/include/util.h b/mdk-stage1/insmod-modutils/include/util.h
index 0a1354bec..8154818ea 100644
--- a/mdk-stage1/insmod-modutils/include/util.h
+++ b/mdk-stage1/insmod-modutils/include/util.h
@@ -39,7 +39,7 @@ typedef int (*xftw_func_t)(const char *, const struct stat *);
extern int xftw(const char *directory, xftw_func_t);
/* Error logging */
-extern int log;
+extern int do_log;
extern int errors;
extern const char *error_file;
diff --git a/mdk-stage1/insmod-modutils/util/logger.c b/mdk-stage1/insmod-modutils/util/logger.c
index 4774a0beb..55920f4db 100644
--- a/mdk-stage1/insmod-modutils/util/logger.c
+++ b/mdk-stage1/insmod-modutils/util/logger.c
@@ -31,7 +31,7 @@
/*======================================================================*/
-int log;
+int do_log = 0;
int errors;
const char *error_file;
@@ -57,7 +57,7 @@ void setsyslog(const char *program)
#ifdef STOREMSG
atexit(dumpmsg);
#endif
- log = 1;
+ do_log = 1;
}
#ifdef _STANDALONE_
@@ -87,7 +87,7 @@ void error(const char *fmt,...)
if (silent)
;
- else if (log) {
+ else if (do_log) {
char buf[2*PATH_MAX];
int n;
@@ -120,7 +120,7 @@ void lprintf(const char *fmt,...)
va_list args;
if (silent);
- else if (log) {
+ else if (do_log) {
char buf[2*PATH_MAX];
va_start(args, fmt);
vsnprintf(buf, sizeof(buf), fmt, args);