mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
use the log defines
use the log defines
This commit is contained in:
parent
5653e31466
commit
ed5fa65837
6
misc.h
6
misc.h
@ -81,7 +81,7 @@ static inline void Syslog(const int level, const char *format, ...)
|
|||||||
/**
|
/**
|
||||||
** Show error.
|
** Show error.
|
||||||
*/
|
*/
|
||||||
#define Error(fmt...) Syslog(0, fmt)
|
#define Error(fmt...) Syslog(LOG_ERR, fmt)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show fatal error.
|
** Show fatal error.
|
||||||
@ -91,12 +91,12 @@ static inline void Syslog(const int level, const char *format, ...)
|
|||||||
/**
|
/**
|
||||||
** Show warning.
|
** Show warning.
|
||||||
*/
|
*/
|
||||||
#define Warning(fmt...) Syslog(1, fmt)
|
#define Warning(fmt...) Syslog(LOG_WARNING, fmt)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show info.
|
** Show info.
|
||||||
*/
|
*/
|
||||||
#define Info(fmt...) Syslog(2, fmt)
|
#define Info(fmt...) Syslog(LOG_INFO, fmt)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
** Show debug.
|
** Show debug.
|
||||||
|
Loading…
Reference in New Issue
Block a user