diff options
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.44 2002/05/12 11:14:18 kls Exp $ + * $Id: tools.h 1.45 2002/05/13 16:21:55 kls Exp $ */ #ifndef __TOOLS_H @@ -20,12 +20,12 @@ extern int SysLogLevel; -#define esyslog(a...) void( (SysLogLevel > 0) ? syslog(a) : void() ) -#define isyslog(a...) void( (SysLogLevel > 1) ? syslog(a) : void() ) -#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog(a) : void() ) +#define esyslog(a...) void( (SysLogLevel > 0) ? syslog(LOG_ERR, a) : void() ) +#define isyslog(a...) void( (SysLogLevel > 1) ? syslog(LOG_INFO, a) : void() ) +#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog(LOG_DEBUG, a) : void() ) -#define LOG_ERROR esyslog(LOG_ERR, "ERROR (%s,%d): %m", __FILE__, __LINE__) -#define LOG_ERROR_STR(s) esyslog(LOG_ERR, "ERROR: %s: %m", s) +#define LOG_ERROR esyslog("ERROR (%s,%d): %m", __FILE__, __LINE__) +#define LOG_ERROR_STR(s) esyslog("ERROR: %s: %m", s) #define SECSINDAY 86400 |