From 2ff144d005eca1da09f714f56248396dfecb9b30 Mon Sep 17 00:00:00 2001 From: wangxingdsb Date: Tue, 28 Mar 2017 08:26:30 -0700 Subject: [PATCH] ext2 Journal: Warn that we found an unrecognized block Signed-off-by: Adrien Destugues Fixes #13400. --- src/add-ons/kernel/file_systems/ext2/Journal.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/ext2/Journal.cpp b/src/add-ons/kernel/file_systems/ext2/Journal.cpp index 7efea26d13..26030baebd 100644 --- a/src/add-ons/kernel/file_systems/ext2/Journal.cpp +++ b/src/add-ons/kernel/file_systems/ext2/Journal.cpp @@ -27,6 +27,7 @@ # define TRACE(x...) ; #endif #define ERROR(x...) dprintf("\33[34mext2:\33[0m " x) +#define WARN(x...) dprintf("\33[34mext2:\33[0m " x) class LogEntry : public DoublyLinkedListLinkImpl { @@ -933,7 +934,7 @@ Journal::_RecoverPassRevoke(uint32 lastCommitID) if (status != B_OK) return status; } else { - // TODO: Warn that we found an unrecognized block + WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n"); break; } @@ -1045,7 +1046,7 @@ Journal::_RecoverPassReplay(uint32 lastCommitID) } else if (blockType == JOURNAL_COMMIT_BLOCK) nextCommitID++; else if (blockType != JOURNAL_REVOKE_BLOCK) { - // TODO: Warn that we found an unrecognized block + WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n"); break; } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it