aboutsummaryrefslogtreecommitdiffstats
path: root/dbg.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2019-04-04 11:54:42 +0200
committerLinus Nordberg <linus@nordberg.se>2019-04-04 12:09:19 +0200
commitb43de5932ba01c8acbcdfc7aebd48b87514f4af2 (patch)
tree80321048763a71ca43c80988db735588dd41e9e8 /dbg.h
parentSpecify scope id in addresses to ping6 (diff)
downloadwg-dynamic-b43de5932ba01c8acbcdfc7aebd48b87514f4af2.tar.xz
wg-dynamic-b43de5932ba01c8acbcdfc7aebd48b87514f4af2.zip
WIP poc0
Diffstat (limited to 'dbg.h')
-rw-r--r--dbg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbg.h b/dbg.h
index 53d0db1..fae583a 100644
--- a/dbg.h
+++ b/dbg.h
@@ -29,6 +29,7 @@ extern int DBG_LVL;
#define SUFFIX(S, M, ...) M S, __VA_ARGS__
#define log_err(...) fprintf(stderr, PREFIX(__VA_ARGS__))
+/* FIXME: This looks backwards -- DBG_LVL=2 gives info but not warn. */
#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 die(...) \