summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
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;
}