aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-04-08 22:06:47 +0200
committerLinus Nordberg <linus@nordberg.se>2019-04-08 22:06:47 +0200
commit877d342bbd8f5bc9d2fbaccc95c3096aeec9be20 (patch)
treefc741e89788a74aa451c90a4a1fa663334f26e5c
parentImplement client sending ip-request and configuring interface (diff)
downloadwg-dynamic-877d342bbd8f5bc9d2fbaccc95c3096aeec9be20.tar.xz
wg-dynamic-877d342bbd8f5bc9d2fbaccc95c3096aeec9be20.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__); \