diff --git a/src/common.h b/src/common.h index e360145..44266ad 100644 --- a/src/common.h +++ b/src/common.h @@ -91,7 +91,7 @@ extern const unsigned char raw_header[RAW_HDR_LEN]; fprintf(stderr, __VA_ARGS__); #define DEBUG(level, ...) \ - if (debug >= level) {\ + if (INSTANCE.debug >= level) {\ TIMEPRINT("[D%d %s:%d] ", level, __FILE__, __LINE__); \ fprintf(stderr, __VA_ARGS__);\ fprintf(stderr, "\n");\ @@ -101,7 +101,7 @@ extern const unsigned char raw_header[RAW_HDR_LEN]; fprintf(stderr, __VA_ARGS__); #define DEBUG(level, ...) \ - if (debug >= level) {\ + if (INSTANCE.debug >= level) {\ fprintf(stderr, "[D%d] ", level); \ fprintf(stderr, __VA_ARGS__);\ fprintf(stderr, "\n");\