1
0
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:
nafets227 2014-11-09 23:14:23 +01:00
parent c2ef6d593e
commit 8c6d16e6b7
2 changed files with 5 additions and 6 deletions

View File

@ -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]))

View File

@ -7,7 +7,6 @@
#include "config.h" #include "config.h"
#include "discover.h" #include "discover.h"
#include "param.h"
#include "device.h" #include "device.h"
#define SATIP_MAX_DEVICES MAXDEVICES #define SATIP_MAX_DEVICES MAXDEVICES