mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 04:08:47 +00:00
debug.h: print pid in all debug output
This commit is contained in:
parent
3721f7e144
commit
181cc0f414
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
# define PSTDERR(fmt, args...) do { dprintf(2,fmt, ## args); } while(0)
|
# 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
|
# define DEBUGDECL(args...) args
|
||||||
# define DUMP_PROXY_CHAIN(A, B) dump_proxy_chain(A, B)
|
# define DUMP_PROXY_CHAIN(A, B) dump_proxy_chain(A, B)
|
||||||
#else
|
#else
|
||||||
@ -14,7 +14,7 @@
|
|||||||
# define DUMP_PROXY_CHAIN(args...) do {} while (0)
|
# define DUMP_PROXY_CHAIN(args...) do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# define PFUNC() do { PDEBUG("pid[%d]:%s\n", getpid(), __FUNCTION__); } while(0)
|
# define PFUNC() do { PDEBUG("%s()\n", __FUNCTION__); } while(0)
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
void dump_proxy_chain(proxy_data *pchain, unsigned int count);
|
void dump_proxy_chain(proxy_data *pchain, unsigned int count);
|
||||||
|
Loading…
Reference in New Issue
Block a user