This patch fix wrong err message of check quota node.

Signed-off-by: Yunlei He <[email protected]>
---
 fsck/fsck.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fsck/fsck.c b/fsck/fsck.c
index 8145199..f9ed797 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -1663,7 +1663,7 @@ int fsck_chk_quota_node(struct f2fs_sb_info *sbi)
                nid_t ino = QUOTA_INO(sb, qtype);
                struct node_info ni;
 
-               DBG(1, "[%3d] ino [0x%x]\n", qtype, ino);
+               DBG(1, "qtype [%d] ino [0x%x]\n", qtype, ino);
                blk_cnt = 1;
 
                if (c.preen_mode == PREEN_MODE_1 && !c.fix_on) {
@@ -1676,7 +1676,8 @@ int fsck_chk_quota_node(struct f2fs_sb_info *sbi)
                ret = fsck_chk_node_blk(sbi, NULL, ino,
                                F2FS_FT_REG_FILE, TYPE_INODE, &blk_cnt, NULL);
                if (ret)
-                       ASSERT_MSG("[0x%x] wrong orphan inode", ino);
+                       ASSERT_MSG("wrong quota inode, qtype [%d] ino [0x%x]",
+                                                               qtype, ino);
        }
        return ret;
 }
-- 
1.9.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to