From 55603617b4649c84296b76c0c41a0b847d83b0c2 Mon Sep 17 00:00:00 2001 From: Andreas Mair Date: Sat, 11 Dec 2010 19:24:32 +0100 Subject: Use syslog if SKINENIGMA_DEBUG is defined. --- common.h | 6 ++++-- 1 file 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 #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); -- cgit v1.2.3