mirror of
https://github.com/rofl0r/proxychains-ng
synced 2025-01-08 06:02:51 +08:00
Make all PDEBUG calls print the PID, helpful for multiprocess applications.
This commit is contained in:
parent
369f92670c
commit
f7efb1ecbe
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user