diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-07-18 18:17:41 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-07-18 18:17:41 +0000 |
commit | 8e1b3cb7408720beee0a305d390530669867b7ff (patch) | |
tree | 18fcdb47429f9f98fbc8ae95cc09073d139f6130 /loader2/log.c | |
parent | 9995f2281f517aefd70886b500ecd90fd4d9b01a (diff) | |
download | anaconda-8e1b3cb7408720beee0a305d390530669867b7ff.tar.gz anaconda-8e1b3cb7408720beee0a305d390530669867b7ff.tar.xz anaconda-8e1b3cb7408720beee0a305d390530669867b7ff.zip |
* loader2/log.c (logMessageV): Fix argument order for va_copy()
calls.
* loader2/log.c: Cleaned up some indentation.
Diffstat (limited to 'loader2/log.c')
-rw-r--r-- | loader2/log.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/loader2/log.c b/loader2/log.c index 9714da33f..145d49162 100644 --- a/loader2/log.c +++ b/loader2/log.c @@ -67,7 +67,7 @@ void logMessageV(int level, const char * s, va_list ap) { if (tty_logfile && level >= minLevel) { va_list apc; - va_copy(ap, apc); + va_copy(apc, ap); printLogHeader(level, tty_logfile); vfprintf(tty_logfile, s, apc); @@ -81,7 +81,7 @@ void logMessageV(int level, const char * s, va_list ap) { if (file_logfile) { va_list apc; - va_copy(ap, apc); + va_copy(apc, ap); printLogHeader(level, file_logfile); vfprintf(file_logfile, s, apc); @@ -104,11 +104,11 @@ void openLog(int useLocal) { int flags, fd; if (!useLocal) { - tty_logfile = fopen("/dev/tty3", "w"); + tty_logfile = fopen("/dev/tty3", "w"); file_logfile = fopen("/tmp/anaconda.log", "w"); } else { - tty_logfile = NULL; - file_logfile = fopen("debug.log", "w"); + tty_logfile = NULL; + file_logfile = fopen("debug.log", "w"); } if (tty_logfile) { @@ -126,10 +126,10 @@ void openLog(int useLocal) { void closeLog(void) { if (tty_logfile) - fclose(tty_logfile); + fclose(tty_logfile); if (file_logfile) - fclose(file_logfile); + fclose(file_logfile); } /* set the level. higher means you see more verbosity */ @@ -140,3 +140,5 @@ void setLogLevel(int level) { int getLogLevel(void) { return minLevel; } + +/* vim:set shiftwidth=4 softtabstop=4: */ |