From ed5fa6583739f192db53154a90770dacba2322e6 Mon Sep 17 00:00:00 2001 From: 9000h <3009073+9000h@users.noreply.github.com> Date: Mon, 28 Oct 2019 12:57:05 +0100 Subject: [PATCH] use the log defines use the log defines --- misc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc.h b/misc.h index de29cc5..d673c81 100644 --- a/misc.h +++ b/misc.h @@ -81,7 +81,7 @@ static inline void Syslog(const int level, const char *format, ...) /** ** Show error. */ -#define Error(fmt...) Syslog(0, fmt) +#define Error(fmt...) Syslog(LOG_ERR, fmt) /** ** Show fatal error. @@ -91,12 +91,12 @@ static inline void Syslog(const int level, const char *format, ...) /** ** Show warning. */ -#define Warning(fmt...) Syslog(1, fmt) +#define Warning(fmt...) Syslog(LOG_WARNING, fmt) /** ** Show info. */ -#define Info(fmt...) Syslog(2, fmt) +#define Info(fmt...) Syslog(LOG_INFO, fmt) /** ** Show debug.