plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 5b0927915fe3308a3bcb501c871ccf97747162ef
parent 92c5d29e20f4df8ae4f7d8266e89426601591010
Author: rsc <devnull@localhost>
Date:   Mon, 26 Sep 2005 11:37:49 +0000

Log if _threaddebuglevel is set.

Diffstat:
Msrc/libthread/thread.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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, '/');