From e9f8ae8b3e008f855df944dfa9afbd4fef54192a Mon Sep 17 00:00:00 2001 From: Yunlei He Date: Thu, 16 Jul 2015 10:10:36 +0800 Subject: [PATCH] fsck.f2fs: add segment type in sit_dump Add segment type information in sit_dump: [sit_dump: 48] SIT[0x12905] : 0x 1 : 0 [sit_dump: 48] SIT[0x12906] : 0x 1 : 5 [sit_dump: 48] SIT[0x12907] : 0x 7 : 4 [sit_dump: 48] SIT[0x12908] : 0x 1 : 3 The last column output message on behalf of segment type like CURSEG_XXX_TYPE. Signed-off-by: Yunlei He Signed-off-by: Jaegeuk Kim --- fsck/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck/dump.c b/fsck/dump.c index 8698b28..81a39c8 100644 --- a/fsck/dump.c +++ b/fsck/dump.c @@ -45,7 +45,7 @@ void sit_dump(struct f2fs_sb_info *sbi, int start_sit, int end_sit) ret = write(fd, buf, strlen(buf)); ASSERT(ret >= 0); - DBG(4, "SIT[0x%3x] : 0x%x\n", segno, se->valid_blocks); + DBG(4, "SIT[0x%3x] : 0x%3x : %d\n", segno, se->valid_blocks, se->type); if (se->valid_blocks == 0x0) { free_segs++; } else {