diff options
author | Linus Nordberg <linus@nordberg.se> | 2019-04-08 22:06:47 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-05-26 01:07:46 +0200 |
commit | df47adc9ff616de7680fe680d7339b1b5ea3b132 (patch) | |
tree | 4483cb9b260fb88983cda2037eaa18e618fbfd7f /dbg.h | |
parent | Implement client sending ip-request and configuring interface (diff) | |
download | wg-dynamic-df47adc9ff616de7680fe680d7339b1b5ea3b132.tar.xz wg-dynamic-df47adc9ff616de7680fe680d7339b1b5ea3b132.zip |
Fix backwards logic in debug logging
Diffstat (limited to 'dbg.h')
-rw-r--r-- | dbg.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,8 +29,8 @@ extern int DBG_LVL; #define SUFFIX(S, M, ...) M S, __VA_ARGS__ #define log_err(...) fprintf(stderr, PREFIX(__VA_ARGS__)) -#define log_warn(...) do { if (DBG_LVL > 2) log_err(__VA_ARGS__); } while (0) -#define log_info(...) do { if (DBG_LVL > 1) log_err(__VA_ARGS__); } while (0) +#define log_warn(...) do { if (DBG_LVL > 1) log_err(__VA_ARGS__); } while (0) +#define log_info(...) do { if (DBG_LVL > 2) log_err(__VA_ARGS__); } while (0) #define die(...) \ do { \ log_err(__VA_ARGS__); \ |