From 328a5ce4ae7bd30a3a57094531bcb6688207415e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 13 May 2001 20:21:25 +0000 Subject: [PATCH] ChangeLog, journal.c: journal.c: Code cleanup; initialize journal_enable_debug using an initializer. --- e2fsck/ChangeLog | 5 +++++ e2fsck/journal.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index a938444..60cd802 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2001-05-13 Theodore Tso + + * journal.c: Code cleanup; initialize journal_enable_debug using + an initializer. + 2001-05-12 Theodore Tso * unix.c (PRS): Skip validation of -C's file descriptor if it is diff --git a/e2fsck/journal.c b/e2fsck/journal.c index a2d5c77..2b5260f 100644 --- a/e2fsck/journal.c +++ b/e2fsck/journal.c @@ -25,9 +25,9 @@ #include "problem.h" #include "uuid/uuid.h" -#ifdef JFS_DEBUG +#ifdef JFS_DEBUG /* Enabled by configure --enable-jfs-debug */ static int bh_count = 0; -int journal_enable_debug = 0; +int journal_enable_debug = 2; #endif /* Kernel compatibility functions for handling the journal. These allow us @@ -483,9 +483,6 @@ int e2fsck_check_ext3_journal(e2fsck_t ctx) uuid_is_null(sb->s_journal_uuid)) return 0; -#ifdef JFS_DEBUG /* Enabled by configure --enable-jfs-debug */ - journal_enable_debug = 2; -#endif clear_problem_context(&pctx); pctx.num = sb->s_journal_inum; -- 1.8.3.1