[libmultipath] fix debugging macro
authorChristophe Varoqui <cvaroqui@zezette.localdomain>
Sat, 9 Jun 2007 16:37:04 +0000 (18:37 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Sat, 9 Jun 2007 16:37:04 +0000 (18:37 +0200)
Minor cleanup: let the macro do something useful when DEBUG is defined

Signed-off-by: Guido Guenther <agx@sigxcpu.org>
libmultipath/sysfs.h

index cf3af36..6d83489 100644 (file)
@@ -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);