diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-18 23:38:46 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-18 23:38:46 +0200 |
commit | f48123bfaa46f5c93fe4b56423c6b52153e5c9b1 (patch) | |
tree | 4e3683e92251d4f3d8fc8cc3fde473a017e20436 /src/log.h | |
parent | ac5acb542df4b9e449dc2413388890ca1e30984e (diff) |
POTD skeleton #61.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |