From 5b0927915fe3308a3bcb501c871ccf97747162ef Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 26 Sep 2005 11:37:49 +0000 Subject: Log if _threaddebuglevel is set. --- src/libthread/thread.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/libthread/thread.c') diff --git a/src/libthread/thread.c b/src/libthread/thread.c index 4d55b06f..da4afe12 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -26,11 +26,8 @@ _threaddebug(char *fmt, ...) char *p; static int fd = -1; -return; - va_start(arg, fmt); - vfprint(1, fmt, arg); - va_end(arg); -return; + if(_threaddebuglevel == 0) + return; if(fd < 0){ p = strrchr(argv0, '/'); -- cgit v1.2.3