Changes by: flatcap
Update of /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions
In directory usw-pr-cvs1:/tmp/cvs-serv2235/linux/fs/partitions
Modified Files:
ldm.c
Log Message:
fix macro side-effect
Index: ldm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/dynamic-disk/linux/fs/partitions/ldm.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -U2 -r1.26 -r1.27
--- ldm.c 2001/07/28 15:01:10 1.26
+++ ldm.c 2001/07/29 13:59:19 1.27
@@ -47,9 +47,10 @@
#ifdef CONFIG_LDM_DEBUG
#define ldm_debug(f, a...) \
- { \
+ do { \
printk(LDM_DEBUG " DEBUG (%s, %d): %s: ", \
__FILE__, __LINE__, __FUNCTION__); \
printk(f, ##a); \
- }
+ } \
+ while (0)
#else /* !CONFIG_LDM_DEBUG */
#define ldm_debug(f, a...) do {} while (0)
|