mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
make various dprintf macros safer for general usage
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
committed by
svenhoefer
parent
20bf0b00d8
commit
9c2d9c8a25
@@ -28,7 +28,11 @@
|
||||
|
||||
extern int timerd_debug;
|
||||
|
||||
#define dprintf(fmt, args...) {if(timerd_debug) printf( "[timerd] " fmt, ## args);}
|
||||
#define dprintf(fmt, args...) \
|
||||
do { \
|
||||
if(timerd_debug) \
|
||||
printf( "[timerd] " fmt, ## args); \
|
||||
} while(0)
|
||||
#define dperror(str) {perror("[timerd] " str);}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user