aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-04-08 22:06:47 +0200
committerThomas Gschwantner <tharre3@gmail.com>2019-05-26 01:07:46 +0200
commitdf47adc9ff616de7680fe680d7339b1b5ea3b132 (patch)
tree4483cb9b260fb88983cda2037eaa18e618fbfd7f
parentImplement client sending ip-request and configuring interface (diff)
downloadwg-dynamic-df47adc9ff616de7680fe680d7339b1b5ea3b132.tar.xz
wg-dynamic-df47adc9ff616de7680fe680d7339b1b5ea3b132.zip
Fix backwards logic in debug logging
-rw-r--r--dbg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbg.h b/dbg.h
index 53d0db1..fa55ee9 100644
--- a/dbg.h
+++ b/dbg.h
@@ -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__); \