From e27555c46856475fc3686511ce8e393651de8e44 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 8 Jan 2008 16:13:42 +0000 Subject: added --enable-mudflap ./configure option --- syslogd.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'syslogd.c') diff --git a/syslogd.c b/syslogd.c index 83b63fc4..64d8ede8 100644 --- a/syslogd.c +++ b/syslogd.c @@ -4278,14 +4278,17 @@ dbgprintf(char *fmt, ...) * rgerhards, 2007-06-15 */ if(bWasNL) { - fprintf(stdout, "%8.8x: ", (unsigned int) pthread_self()); + //fprintf(stdout, "%8.8x: ", (unsigned int) pthread_self()); + fprintf(stderr, "%8.8x: ", (unsigned int) pthread_self()); } bWasNL = (*(fmt + strlen(fmt) - 1) == '\n') ? TRUE : FALSE; va_start(ap, fmt); - vfprintf(stdout, fmt, ap); + //vfprintf(stdout, fmt, ap); + vfprintf(stderr, fmt, ap); va_end(ap); - fflush(stdout); + fflush(stderr); + //fflush(stdout); return; } -- cgit