ino = le32_to_cpu(node_blk->footer.ino);
nid = le32_to_cpu(node_blk->footer.nid);
if (ino == nid) {
- print_inode_info(&node_blk->i);
+ print_node_info(node_blk);
} else {
ret = get_node_info(sbi, ino, &ni);
goto read_node_blk;
void print_raw_sb_info(struct f2fs_sb_info *sbi)
{
struct f2fs_super_block *sb = F2FS_RAW_SUPER(sbi);
+
+ if (!config.dbg_lv)
+ return;
+
printf("\n");
printf("+--------------------------------------------------------+\n");
printf("| Super block |\n");
{
struct f2fs_checkpoint *cp = F2FS_CKPT(sbi);
+ if (!config.dbg_lv)
+ return;
+
printf("\n");
printf("+--------------------------------------------------------+\n");
printf("| Checkpoint |\n");
fsck->chk.sit_valid_blocks = sum_vblocks;
fsck->chk.sit_free_segs = free_segs;
- DBG(0, "Blocks [0x%x] Free Segs [0x%x]\n\n", sum_vblocks, free_segs);
+ DBG(1, "Blocks [0x%x : %d] Free Segs [0x%x : %d]\n\n", sum_vblocks, sum_vblocks,
+ free_segs, free_segs);
return 0;
}
}
free(nat_block);
- DBG(0, "valid nat entries (block_addr != 0x0) [0x%8x : %u]\n",
+ DBG(1, "valid nat entries (block_addr != 0x0) [0x%8x : %u]\n",
fsck->chk.valid_nat_entry_cnt, fsck->chk.valid_nat_entry_cnt);
}