summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-27 19:55:02 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-27 19:55:02 +0100
commit2863a88a41959952cfce6b9c01c55d33a3252ef2 (patch)
treedd3494133c3d8f631b8fcc3c3d0a80a9e12ee1fa /debug.h
parentbf0339d02b66db18a54ce4862370f2ba2fa5034f (diff)
downloadvdr-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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/debug.h b/debug.h
index 33745b3..a12a972 100644
--- a/debug.h
+++ b/debug.h
@@ -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