Skip to contentSkip to conversation

fix debugging macro

PATCH New Guido Guenther 1 participant 1 message Jun 9, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix debugging macro

Minor cleanup: let the macro do something useful when DEBUG is defined

---
 libmultipath/sysfs.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
libmultipath/sysfs.h +2 -2
index cf3af36..2625ee5 100644
@@ -6,9 +6,9 @@
 #define _LIBMULTIPATH_SYSFS_H
 
 #ifdef DEBUG
-# define dbg printf
+# define dbg(format, args...) printf(format "\n", ##args)
 #else
-# define dbg(format, arg...) do {} while (0)
+# define dbg(format, args...) do {} while (0)
 #endif
 
 int sysfs_init(char *path, size_t len);
Signature · 1 line
1.5.2.1