Messages in this thread Patch in this message | | | Subject | Re: EPOX and VIA | From | Andreas Schwab <> | Date | 21 Sep 1998 14:30:39 +0200 |
| |
Kurt Garloff <garloff@kg1.ping.de> writes:
|> Sorry, if this wasn't clear. Quotation was wrong. I wanted to say if anyone |> will correct this to be ,,not 100% native mode`` instead of of ,,not |> 100ative mode``. But as the sources do look fine, it might be klogd/syslogd.
Yes, that's a bug in sysklogd. Here is a patch:
--- sysklogd-1.3/klogd.c.~2~ Sat Feb 1 17:52:43 1997 +++ sysklogd-1.3/klogd.c Fri Jul 10 20:58:23 1998 @@ -379,7 +379,6 @@ { fputs("Logging line:\n", stderr); fprintf(stderr, "\tLine: %s\n", fmt); - fprintf(stderr, "\tPriority: %c\n", *(fmt+1)); } /* Handle output to a file. */ @@ -395,6 +394,33 @@ } /* Output using syslog. */ + va_start(ap, fmt); + vsyslog(priority, fmt, ap); + va_end(ap); + + return; +} + +void Syslog1(int priority, char *fmt) +{ + if ( debugging ) + { + fputs("Logging line:\n", stderr); + fprintf(stderr, "\tLine: %s\n", fmt); + fprintf(stderr, "\tPriority: %c\n", *(fmt+1)); + } + + /* Handle output to a file. */ + if ( output_file != (FILE *) 0 ) + { + fputs(fmt, output_file); + fputc('\n', output_file); + fflush(output_file); + fsync(fileno(output_file)); + return; + } + + /* Output using syslog. */ if ( *fmt == '<' ) { switch ( *(fmt+1) ) @@ -427,9 +453,7 @@ fmt += 3; } - va_start(ap, fmt); - vsyslog(priority, fmt, ap); - va_end(ap); + syslog(priority, "%s", fmt); return; } @@ -481,7 +505,7 @@ { memset(eline, '\0', sizeof(eline)); ExpandKadds(line, eline); - Syslog(LOG_INFO, eline); + Syslog1(LOG_INFO, eline); } index = 0; memset(line, '\0', sizeof(line)); -- Andreas Schwab "And now for something schwab@issan.informatik.uni-dortmund.de completely different" schwab@gnu.org
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |