summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2010-12-11 19:24:32 +0100
committerAndreas Mair <amair.sob@googlemail.com>2010-12-11 19:24:32 +0100
commit55603617b4649c84296b76c0c41a0b847d83b0c2 (patch)
treedd550d31404946a2be18c6e1c2f21b5f6416d7e4 /common.h
parenteebfdf1a3d737db58e6d2d3c6945584dd5e5054f (diff)
downloadvdr-plugin-skinenigmang-55603617b4649c84296b76c0c41a0b847d83b0c2.tar.gz
vdr-plugin-skinenigmang-55603617b4649c84296b76c0c41a0b847d83b0c2.tar.bz2
Use syslog if SKINENIGMA_DEBUG is defined.
Diffstat (limited to 'common.h')
-rw-r--r--common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/common.h b/common.h
index b6b581f..2447200 100644
--- a/common.h
+++ b/common.h
@@ -14,8 +14,10 @@
#include <vdr/config.h>
#ifdef DEBUG
-#define debug(x...) { printf("EnigmaNG: " x); printf("\n"); }
-#define error(x...) { fprintf(stderr, "EnigmaNG: " x); fprintf(stderr, "\n"); }
+#define debug(x...) dsyslog("EnigmaNG: " x);
+#define error(x...) esyslog("EnigmaNG: " x);
+//#define debug(x...) { printf("EnigmaNG: " x); printf("\n"); }
+//#define error(x...) { fprintf(stderr, "EnigmaNG: " x); fprintf(stderr, "\n"); }
#else
#define debug(x...) ;
#define error(x...) esyslog("EnigmaNG: " x);