aboutsummaryrefslogtreecommitdiffstats
path: root/dbg.h
diff options
context:
space:
mode:
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(...) \