Debug macro now always shows source location.

This commit is contained in:
frekky 2015-10-17 22:28:45 +08:00
parent 235d3be538
commit 137d3029e5

View File

@ -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");\
}\