From: Christophe Varoqui Date: Sat, 9 Jun 2007 16:37:04 +0000 (+0200) Subject: [libmultipath] fix debugging macro X-Git-Tag: 0.4.8~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=251d00d09ab824ee52f3bcada4c1fe361a0fe8b7;p=platform%2Fupstream%2Fmultipath-tools.git [libmultipath] fix debugging macro Minor cleanup: let the macro do something useful when DEBUG is defined Signed-off-by: Guido Guenther --- diff --git a/libmultipath/sysfs.h b/libmultipath/sysfs.h index cf3af36..6d83489 100644 --- a/libmultipath/sysfs.h +++ b/libmultipath/sysfs.h @@ -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);