summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-08-03 15:45:38 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-03 15:45:38 -0300
commiteaf8f4225d1c865dd9006a09059fefcd941bff63 (patch)
tree23bf743bc5973c8be702a0090090b473a5e59424
parentc68ef16c494a1c61bc702b7df0b21dc24d8eaf4f (diff)
macros: Use `printlog()`, rather than hardcoding `syslog()` in the
`log()` macro
-rw-r--r--macros.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/macros.h b/macros.h
index 41dc81a..5f4c523 100644
--- a/macros.h
+++ b/macros.h
@@ -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