mirror of
https://github.com/rofl0r/proxychains-ng
synced 2026-05-31 03:29:58 +08:00
print everything to stderr, and fflush on PDEBUG
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ int proxy_getaddrinfo(const char *node, const char *service,
|
||||
void pc_stringfromipv4(unsigned char *ip_buf_4_bytes, char *outbuf_16_bytes);
|
||||
|
||||
#ifdef DEBUG
|
||||
# define PDEBUG(fmt, args...) fprintf(stderr,"DEBUG:"fmt, ## args)
|
||||
# define PDEBUG(fmt, args...) do { fprintf(stderr,"DEBUG:"fmt, ## args); fflush(stderr); } while(0)
|
||||
#else
|
||||
# define PDEBUG(fmt, args...) do {} while (0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user