1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

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

View File

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