diff --git a/src/debug.h b/src/debug.h index 9645f1c..94afa01 100644 --- a/src/debug.h +++ b/src/debug.h @@ -5,7 +5,7 @@ #ifdef DEBUG # define PSTDERR(fmt, args...) do { dprintf(2,fmt, ## args); } while(0) -# define PDEBUG(fmt, args...) PSTDERR("DEBUG:pid[%d]:" fmt, getpid(), ## args) +# define PDEBUG(fmt, args...) PSTDERR("DEBUG:pid[%d]tid[%d]func[%s()]:" fmt, getpid(),gettid(),__FUNCTION__, ## args) # define DEBUGDECL(args...) args # define DUMP_PROXY_CHAIN(A, B) dump_proxy_chain(A, B) # define DUMP_BUFFER(data, len) dump_buffer(data, len)