This patch removes an extra '\n' at the end of the string in FIX_MSG. Signed-off-by: Sheng Yong <shengyo...@huawei.com> --- fsck/fsck.c | 4 ++-- fsck/mount.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/fsck/fsck.c b/fsck/fsck.c index 77490d8..1905319 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -966,7 +966,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; @@ -1006,7 +1006,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; diff --git a/fsck/mount.c b/fsck/mount.c index d631547..cf2ef8e 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -1981,7 +1981,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; } } @@ -2001,6 +2001,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); -- 2.11.0 ------------------------------------------------------------------------------ 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 Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel