diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-03-27 19:55:02 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-03-27 19:55:02 +0100 |
commit | 2863a88a41959952cfce6b9c01c55d33a3252ef2 (patch) | |
tree | dd3494133c3d8f631b8fcc3c3d0a80a9e12ee1fa /debug.h | |
parent | bf0339d02b66db18a54ce4862370f2ba2fa5034f (diff) | |
download | vdr-plugin-markad-2863a88a41959952cfce6b9c01c55d33a3252ef2.tar.gz vdr-plugin-markad-2863a88a41959952cfce6b9c01c55d33a3252ef2.tar.bz2 |
Got rid of <vdr/tool.h> dependency
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -12,6 +12,12 @@ #define LOG_ERR 3 #endif -#define tsyslog(fmt,...) void( (SysLogLevel > 3) ? syslog_with_tid(LOG_ERR, fmt, __VA_ARGS__) : void() ) +extern int SysLogLevel; +extern void syslog_with_tid(int priority, const char *format, ...) __attribute__ ((format (printf, 2, 3))); -#endif
\ No newline at end of file +#define esyslog(a...) void( (SysLogLevel > 0) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define isyslog(a...) void( (SysLogLevel > 1) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define dsyslog(a...) void( (SysLogLevel > 2) ? syslog_with_tid(LOG_ERR, a) : void() ) +#define tsyslog(a...) void( (SysLogLevel > 3) ? syslog_with_tid(LOG_ERR, a) : void() ) + +#endif |