mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Bugfix of LOG Makros
the trailing ";" leads to unexpeczed results if the macro is used in if if (somecondition) debug(blabla); erroneously expanded to if (somecondition) dsyslog(blablabl); ;
This commit is contained in:
parent
c2ef6d593e
commit
8c6d16e6b7
10
common.h
10
common.h
@ -13,13 +13,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