diff options
Diffstat (limited to 'ext2fs/ext2_fs.h')
-rw-r--r-- | ext2fs/ext2_fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |