mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-28 20:45:12 +00:00
Debug macro now always shows source location.
This commit is contained in:
parent
235d3be538
commit
137d3029e5
@ -84,11 +84,7 @@ extern const unsigned char raw_header[RAW_HDR_LEN];
|
||||
/* handy debug printing macro */
|
||||
#define DEBUG(level, ...) \
|
||||
if (debug >= level) {\
|
||||
if (level >= 3) {\
|
||||
fprintf(stderr, "[D%d %s:%d] ", level, __FILE__, __LINE__); \
|
||||
} else { \
|
||||
fprintf(stderr, "[D%d] ", level);\
|
||||
}\
|
||||
fprintf(stderr, __VA_ARGS__);\
|
||||
fprintf(stderr, "\n");\
|
||||
}\
|
||||
|
Loading…
Reference in New Issue
Block a user