From 03228119655e83b71b2145e53cb307787e49e0cd Mon Sep 17 00:00:00 2001 From: hugoc Date: Tue, 13 Feb 2024 19:51:24 +0100 Subject: [PATCH] change debug format --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)