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