summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-08 16:13:42 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-08 16:13:42 +0000
commite27555c46856475fc3686511ce8e393651de8e44 (patch)
tree558a2cff52d01f9ceb38219e53442a74748a08be /syslogd.c
parent8d0a174a86d29dbec6412cb1bd38f87b3b3c059b (diff)
downloadrsyslog-e27555c46856475fc3686511ce8e393651de8e44.tar.gz
rsyslog-e27555c46856475fc3686511ce8e393651de8e44.tar.xz
rsyslog-e27555c46856475fc3686511ce8e393651de8e44.zip
added --enable-mudflap ./configure option
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c9
1 files changed, 6 insertions, 3 deletions
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;
}