mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
fsck.f2fs: format output message of FIX_MSG
This patch removes an extra '\n' at the end of the string in FIX_MSG. Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
ffabb34ea1
commit
0f9fb720b2
@ -982,7 +982,7 @@ int fsck_chk_idnode_blk(struct f2fs_sb_info *sbi, struct f2fs_inode *inode,
|
||||
else {
|
||||
node_blk->in.nid[i] = 0;
|
||||
need_fix = 1;
|
||||
FIX_MSG("Set indirect node 0x%x -> 0\n", i);
|
||||
FIX_MSG("Set indirect node 0x%x -> 0", i);
|
||||
}
|
||||
skip:
|
||||
child->pgofs += ADDRS_PER_BLOCK;
|
||||
@ -1022,7 +1022,7 @@ int fsck_chk_didnode_blk(struct f2fs_sb_info *sbi, struct f2fs_inode *inode,
|
||||
else {
|
||||
node_blk->in.nid[i] = 0;
|
||||
need_fix = 1;
|
||||
FIX_MSG("Set double indirect node 0x%x -> 0\n", i);
|
||||
FIX_MSG("Set double indirect node 0x%x -> 0", i);
|
||||
}
|
||||
skip:
|
||||
child->pgofs += ADDRS_PER_BLOCK * NIDS_PER_BLOCK;
|
||||
|
@ -1867,7 +1867,7 @@ void nullify_nat_entry(struct f2fs_sb_info *sbi, u32 nid)
|
||||
if (le32_to_cpu(nid_in_journal(journal, i)) == nid) {
|
||||
memset(&nat_in_journal(journal, i), 0,
|
||||
sizeof(struct f2fs_nat_entry));
|
||||
FIX_MSG("Remove nid [0x%x] in nat journal\n", nid);
|
||||
FIX_MSG("Remove nid [0x%x] in nat journal", nid);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -1887,6 +1887,7 @@ void nullify_nat_entry(struct f2fs_sb_info *sbi, u32 nid)
|
||||
} else {
|
||||
memset(&nat_block->entries[entry_off], 0,
|
||||
sizeof(struct f2fs_nat_entry));
|
||||
FIX_MSG("Remove nid [0x%x] in NAT", nid);
|
||||
}
|
||||
|
||||
ret = dev_write_block(nat_block, block_addr);
|
||||
|
Loading…
Reference in New Issue
Block a user