[PATCH] fix debugging macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Guido Guenther <agx@xxxxxxxxxxx>
---
 libmultipath/sysfs.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libmultipath/sysfs.h b/libmultipath/sysfs.h
index cf3af36..2625ee5 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);
-- 
1.5.2.1

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux