diff options
author | Andreas Mair <amair.sob@googlemail.com> | 2010-12-11 19:24:32 +0100 |
---|---|---|
committer | Andreas Mair <amair.sob@googlemail.com> | 2010-12-11 19:24:32 +0100 |
commit | 55603617b4649c84296b76c0c41a0b847d83b0c2 (patch) | |
tree | dd550d31404946a2be18c6e1c2f21b5f6416d7e4 /common.h | |
parent | eebfdf1a3d737db58e6d2d3c6945584dd5e5054f (diff) | |
download | vdr-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.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |