From eb5670ecd2c4465eb5462be011c76324b2eded8f Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Thu, 24 Aug 2000 01:40:46 +0000 Subject: [PATCH] send task trace output to stderr, not stdout, so that it gets buffered synchronously with logging output sent to stderr --- lib/isc/task.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/isc/task.c b/lib/isc/task.c index 60dac065f3..ce4d415c1f 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: task.c,v 1.69 2000/08/01 01:29:51 tale Exp $ */ +/* $Id: task.c,v 1.70 2000/08/24 01:40:46 gson Exp $ */ /* * Principal Author: Bob Halley @@ -39,11 +39,11 @@ #define ISC_TASK_NAMES 1 #ifdef ISC_TASK_TRACE -#define XTRACE(m) printf("task %p thread %lu: %s\n", \ +#define XTRACE(m) fprintf(stderr, "task %p thread %lu: %s\n", \ task, isc_thread_self(), (m)) -#define XTTRACE(t, m) printf("task %p thread %lu: %s\n", \ +#define XTTRACE(t, m) fprintf(stderr, "task %p thread %lu: %s\n", \ (t), isc_thread_self(), (m)) -#define XTHREADTRACE(m) printf("thread %lu: %s\n", \ +#define XTHREADTRACE(m) fprintf(stderr, "thread %lu: %s\n", \ isc_thread_self(), (m)) #else #define XTRACE(m)