From 68863de34135a3a9645fb2d93d1ae462204eae5e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 2 Aug 1996 17:08:43 +0000 Subject: (ext2_debug_flag): New decl. (ext2_debug): Pay attention to EXT2_DEBUG_FLAG. --- ext2fs/ext2_fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext2fs') diff --git a/ext2fs/ext2_fs.h b/ext2fs/ext2_fs.h index d98e2625..9934ce85 100644 --- a/ext2fs/ext2_fs.h +++ b/ext2fs/ext2_fs.h @@ -62,8 +62,9 @@ typedef signed char s8; * Debug code */ #ifdef EXT2FS_DEBUG +extern int ext2_debug_flag; #define ext2_debug(f, a...) \ - do { printf ("ext2fs: (debug) %s: " f "\n", __FUNCTION__ , ## a); } while (0) + do { if (ext2_debug_flag) printf ("ext2fs: (debug) %s: " f "\n", __FUNCTION__ , ## a); } while (0) #else #define ext2_debug(f, a...) (void)0 #endif -- cgit v1.2.3