From 137d3029e5ce6b50f269e3c1aa93116c8126be10 Mon Sep 17 00:00:00 2001 From: frekky Date: Sat, 17 Oct 2015 22:28:45 +0800 Subject: [PATCH] Debug macro now always shows source location. --- src/common.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common.h b/src/common.h index 7a45053..d357454 100644 --- a/src/common.h +++ b/src/common.h @@ -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, "[D%d %s:%d] ", level, __FILE__, __LINE__); \ fprintf(stderr, __VA_ARGS__);\ fprintf(stderr, "\n");\ }\