tLog if _threaddebuglevel is set. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5b0927915fe3308a3bcb501c871ccf97747162ef
 (DIR) parent 92c5d29e20f4df8ae4f7d8266e89426601591010
 (HTM) Author: rsc <devnull@localhost>
       Date:   Mon, 26 Sep 2005 11:37:49 +0000
       
       Log if _threaddebuglevel is set.
       
       Diffstat:
         M src/libthread/thread.c              |       7 ++-----
       
       1 file changed, 2 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/src/libthread/thread.c b/src/libthread/thread.c
       t@@ -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, '/');