Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
Jaegeuk Kim committed Jul 25, 2024
1 parent c186cee commit d289537
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fsck/inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ static int inject_sit(struct f2fs_sb_info *sbi, struct inject_option *opt)
sit->valid_map[opt->idx] = (u8)opt->val;
} else if (!strcmp(opt->mb, "mtime")) {
MSG(0, "Info: inject sit entry mtime of block 0x%x "
"in pack %d: %lu -> %lu\n", opt->blk, opt->sit,
"in pack %d: %lu -> %"PRIu64"\n", opt->blk, opt->sit,
le64_to_cpu(sit->mtime), (u64)opt->val);
sit->mtime = cpu_to_le64((u64)opt->val);
} else {
Expand Down Expand Up @@ -754,11 +754,11 @@ static int inject_inode(struct f2fs_sb_info *sbi, struct f2fs_node *node,
opt->nid, le32_to_cpu(inode->i_links), (u32)opt->val);
inode->i_links = cpu_to_le32((u32)opt->val);
} else if (!strcmp(opt->mb, "i_size")) {
MSG(0, "Info: inject inode i_size of nid %u: %lu -> %lu\n",
MSG(0, "Info: inject inode i_size of nid %u: %lu -> %"PRIu64"\n",
opt->nid, le64_to_cpu(inode->i_size), (u64)opt->val);
inode->i_size = cpu_to_le64((u64)opt->val);
} else if (!strcmp(opt->mb, "i_blocks")) {
MSG(0, "Info: inject inode i_blocks of nid %u: %lu -> %lu\n",
MSG(0, "Info: inject inode i_blocks of nid %u: %lu -> %"PRIu64"\n",
opt->nid, le64_to_cpu(inode->i_blocks), (u64)opt->val);
inode->i_blocks = cpu_to_le64((u64)opt->val);
} else if (!strcmp(opt->mb, "i_extra_isize")) {
Expand Down Expand Up @@ -867,7 +867,7 @@ static int inject_node(struct f2fs_sb_info *sbi, struct inject_option *opt)
footer->flag = cpu_to_le32((u32)opt->val);
} else if (!strcmp(opt->mb, "cp_ver")) {
MSG(0, "Info: inject node footer cp_ver of nid %u: "
"0x%lx -> 0x%lx\n", opt->nid, le64_to_cpu(footer->cp_ver),
"0x%lx -> 0x%"PRIx64"\n", opt->nid, le64_to_cpu(footer->cp_ver),
(u64)opt->val);
footer->cp_ver = cpu_to_le64((u64)opt->val);
} else if (!strcmp(opt->mb, "next_blkaddr")) {
Expand Down

0 comments on commit d289537

Please sign in to comment.