]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: improve DBG() macro
authorKarel Zak <kzak@redhat.com>
Fri, 7 Sep 2012 08:58:49 +0000 (10:58 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Sep 2012 08:58:49 +0000 (10:58 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/blkidP.h

index f2151ac57db342ca16e68b6d36c8b9ae3c0ebf76..92f25392482dfda6828c5fb2b7417153af37bf85 100644 (file)
@@ -343,7 +343,7 @@ extern void blkid_init_debug(int mask);
 extern void blkid_debug_dump_dev(blkid_dev dev);
 extern void blkid_debug_dump_tag(blkid_tag tag);
 
-#define DBG(m,x)       if ((m) & blkid_debug_mask) x;
+#define DBG(m,x)       do { if ((m) & blkid_debug_mask) x; } while (0)
 
 #else /* !CONFIG_BLKID_DEBUG */
 #define DBG(m,x)