Corrected log Macros.

If used like the code below, it would produce a compile error as
in the 'if' path there would be two semicolons:

if (anything)
   debug(...);
else
   doanything();
This commit is contained in:
nafets227 2014-11-23 13:33:47 +01:00 committed by Rolf Ahrenberg
parent 8bd4a1a67d
commit 80abbddae7
1 changed files with 6 additions and 6 deletions

View File

@ -14,13 +14,13 @@
#include <vdr/i18n.h>
#ifdef DEBUG
#define debug(x...) dsyslog("SATIP: " x);
#define info(x...) isyslog("SATIP: " x);
#define error(x...) esyslog("ERROR: " x);
#define debug(x...) dsyslog("SATIP: " x)
#define info(x...) isyslog("SATIP: " x)
#define error(x...) esyslog("ERROR: " x)
#else
#define debug(x...) ;
#define info(x...) isyslog("SATIP: " x);
#define error(x...) esyslog("ERROR: " x);
#define debug(x...) {}
#define info(x...) isyslog("SATIP: " x)
#define error(x...) esyslog("ERROR: " x)
#endif
#define ELEMENTS(x) (sizeof(x) / sizeof(x[0]))