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:
parent
8bd4a1a67d
commit
80abbddae7
12
common.h
12
common.h
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue