diff options
author | rsc <devnull@localhost> | 2005-09-26 11:37:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-09-26 11:37:49 +0000 |
commit | 5b0927915fe3308a3bcb501c871ccf97747162ef (patch) | |
tree | d4b2ecff7853077833ad1e51dbc10e6ee1ee8ed7 /src/libthread | |
parent | 92c5d29e20f4df8ae4f7d8266e89426601591010 (diff) | |
download | plan9port-5b0927915fe3308a3bcb501c871ccf97747162ef.tar.gz plan9port-5b0927915fe3308a3bcb501c871ccf97747162ef.tar.bz2 plan9port-5b0927915fe3308a3bcb501c871ccf97747162ef.zip |
Log if _threaddebuglevel is set.
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/thread.c | 7 |
1 files changed, 2 insertions, 5 deletions
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, '/'); |