Ticket #13400: 0001-FileSystem-ext2-Journal-TODO-Warn-that-we-found-an-u.2.patch

File 0001-FileSystem-ext2-Journal-TODO-Warn-that-we-found-an-u.2.patch, 1.4 KB (added by wangxindsb, 7 years ago)

add an a defination of warn

  • src/add-ons/kernel/file_systems/ext2/Journal.cpp

    From ceb7dc5a5e4cf65c3925c4b102c091e8b1797fce Mon Sep 17 00:00:00 2001
    From: wangxindsb <wangxindsb.gmail.com>
    Date: Tue, 28 Mar 2017 03:08:25 -0700
    Subject: [PATCH] FileSystem: ext2 Journal, TODO:Warn that we found an
     unrecognized block
    
    ---
     src/add-ons/kernel/file_systems/ext2/Journal.cpp | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/src/add-ons/kernel/file_systems/ext2/Journal.cpp b/src/add-ons/kernel/file_systems/ext2/Journal.cpp
    index 7efea26..6cfc171 100644
    a b  
    2727#   define TRACE(x...) ;
    2828#endif
    2929#define ERROR(x...) dprintf("\33[34mext2:\33[0m " x)
     30#define WARN(x...) dprintf("\33[34mext2:\33[0m " x)
    3031
    3132
    3233class LogEntry : public DoublyLinkedListLinkImpl<LogEntry> {
    Journal::_RecoverPassRevoke(uint32 lastCommitID)  
    934935                return status;
    935936        } else {
    936937                // TODO: Warn that we found an unrecognized block
     938            WARN("Journal::_RecoverPassRevoke(): Found an unrecognized block\n");
    937939            break;
    938940        }
    939941
    Journal::_RecoverPassReplay(uint32 lastCommitID)  
    10461048            nextCommitID++;
    10471049        else if (blockType != JOURNAL_REVOKE_BLOCK) {
    10481050                // TODO: Warn that we found an unrecognized block
     1051            WARN("Journal::_RecoverPassReplay(): Found an unrecognized block\n");
    10491052            break;
    10501053        } // If blockType == JOURNAL_REVOKE_BLOCK we just skip it
    10511054