commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 08/30: ext2fs: provide unconditional debug macro


From: Samuel Thibault
Subject: [hurd] 08/30: ext2fs: provide unconditional debug macro
Date: Tue, 22 Sep 2015 21:51:58 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 714c72349f136c4b798d0df847f85340c6e76aa8
Author: Justus Winter <address@hidden>
Date:   Fri Aug 14 02:36:33 2015 +0200

    ext2fs: provide unconditional debug macro
    
    * ext2fs/ext2fs.h (ext2_debug_): New macro that unconditionally prints
    the given message.
    (ext2_debug): Use the new macro.
---
 ext2fs/ext2fs.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index 0009af0..72b7b09 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -52,8 +52,10 @@ typedef int8_t    __s8;
 #ifdef EXT2FS_DEBUG
 #include <stdio.h>
 extern int ext2_debug_flag;
+#define ext2_debug_(f, a...) \
+ fprintf (stderr, "ext2fs: (debug) %s: " f "\n", __FUNCTION__ , ## a)
 #define ext2_debug(f, a...) \
- do { if (ext2_debug_flag) fprintf (stderr, "ext2fs: (debug) %s: " f "\n", 
__FUNCTION__ , ## a); } while (0)
+ do { if (ext2_debug_flag) ext2_debug_(f, ## a); } while (0)
 #else
 #define ext2_debug(f, a...)    (void)0
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]