diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-13 16:35:49 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-13 16:35:49 +0200 |
commit | d4893ad1fed2e2b157c404d610db779138c4c461 (patch) | |
tree | 50d97120ec3a806cf2bcc74cd6385c750eb15d77 /tools.h | |
parent | 49fcbf19fa2a179d06990443349575ffa86a697f (diff) | |
download | vdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.gz vdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.bz2 |
Improved the [eid]syslog() macros
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 |