We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 428d8c7 commit 13fa255Copy full SHA for 13fa255
src/debug.h
@@ -3,8 +3,8 @@
3
4
#ifdef DEBUG
5
# include <stdio.h>
6
-# define PSTDERR(fmt, args...) do { dprintf(2,fmt, ## args); } while(0)
7
-# define PDEBUG(fmt, args...) PSTDERR("DEBUG:"fmt, ## args)
+# define PSTDERR(fmt, args...) do { dprintf(2,fmt, getpid(), ## args); } while(0)
+# define PDEBUG(fmt, args...) PSTDERR("DEBUG:pid[%d]:"fmt, ## args)
8
# define DEBUGDECL(args...) args
9
10
# include "core.h"
0 commit comments