X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=rpi%2Flog.c;h=bd4193688afdb89a070251f57bbf69ca357e7c36;hb=39f3324245b287e72696a25807e6c3129e51e511;hp=15e66187c098e6758aec860ac0bcf60d28be7cb2;hpb=5d2b87e5ad41b31eeb94dca4547d73bc8e30e6c3;p=matches%2FMCTX3420.git diff --git a/rpi/log.c b/rpi/log.c index 15e6618..bd41936 100644 --- a/rpi/log.c +++ b/rpi/log.c @@ -31,7 +31,7 @@ void Log(int level, char * funct, char * fmt, ...) Fatal("Log", "Format string is NULL"); // Don't print the message unless we need to - if (level > options.verbosity) + if (level > g_options.verbosity) return; if (funct == NULL) @@ -59,7 +59,7 @@ void Log(int level, char * funct, char * fmt, ...) } // Print: Program name, PID, severity string, function name first - fprintf(stderr, "%s [%d] : %s : %s - ", options.program, getpid(), severity, funct); + fprintf(stderr, "%s [%d] : %s : %s - ", g_options.program, getpid(), severity, funct); // Then pass additional arguments with the format string to vfprintf for printing va_list va; @@ -93,7 +93,7 @@ void Fatal(char * funct, char * fmt, ...) if (funct == NULL) funct = unspecified_funct; - fprintf(stderr, "%s [%d] : %s : FATAL - ", options.program, getpid(), funct); + fprintf(stderr, "%s [%d] : %s : FATAL - ", g_options.program, getpid(), funct); va_list va; va_start(va, fmt);