Skip to content

Commit

Permalink
Make all PDEBUG calls print the PID, helpful for multiprocess applica…
Browse files Browse the repository at this point in the history
…tions.
  • Loading branch information
crass committed Sep 3, 2018
1 parent 369f926 commit f7efb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#ifdef DEBUG
# include <stdio.h>
# define PSTDERR(fmt, args...) do { dprintf(2,fmt, ## args); } while(0)
# define PDEBUG(fmt, args...) PSTDERR("DEBUG:"fmt, ## args)
# define PDEBUG(fmt, args...) PSTDERR("DEBUG:pid[%d]:"fmt, getpid(), ## args)
# define DEBUGDECL(args...) args

# include "core.h"
Expand Down

0 comments on commit f7efb1e

Please sign in to comment.