Merge pull request #13 from 9000h/use-the-log-defines

use the log defines
This commit is contained in:
jojo61 2019-10-28 19:59:11 +01:00 committed by GitHub
commit c4a7aefc20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

6
misc.h
View File

@ -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.