aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-05-18 23:38:46 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-05-18 23:38:46 +0200
commitf48123bfaa46f5c93fe4b56423c6b52153e5c9b1 (patch)
tree4e3683e92251d4f3d8fc8cc3fde473a017e20436 /src/log.h
parentac5acb542df4b9e449dc2413388890ca1e30984e (diff)
POTD skeleton #61.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.h b/src/log.h
index 1672097..345ec64 100644
--- a/src/log.h
+++ b/src/log.h
@@ -38,9 +38,10 @@
{ int rv = expr; \
if (rv) { E2("`%s` returned: %d", #expr, rv); \
E_GAIERR(rv, msg); abort(); } }
+#define C(fmt, ...) log_fmt(CMD, fmt, __VA_ARGS__)
typedef enum log_priority {
- DEBUG = 0, NOTICE, WARNING, ERROR
+ DEBUG = 0, NOTICE, WARNING, ERROR, CMD
} log_priority;
typedef int (*log_open_cb) (void);