diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-03 15:45:38 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-03 15:45:38 -0300 |
commit | eaf8f4225d1c865dd9006a09059fefcd941bff63 (patch) | |
tree | 23bf743bc5973c8be702a0090090b473a5e59424 | |
parent | c68ef16c494a1c61bc702b7df0b21dc24d8eaf4f (diff) |
macros: Use `printlog()`, rather than hardcoding `syslog()` in the
`log()` macro
-rw-r--r-- | macros.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,9 @@ #ifndef MACROS_H #define MACROS_H -#define log(priority, ...) syslog(priority, __VA_ARGS__) +#include "log.h" + +#define log(priority, ...) printlog(LOG_OUT_SYSLOG, priority, __VA_ARGS__) #define log_reason(priority, msg, ...) log(priority, msg " Reason %s", __VA_ARGS__) + #endif |