Skip to content

Commit 148fc2a

Browse files
Daniel LeeJaegeuk Kim
authored andcommitted
f2fs_io: fix format mismatch for ino_t
The ino_t type can be defined as either 'unsigned long' or 'unsigned long long'. Signed-off-by: Daniel Lee <chullee@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 8cff69c commit 148fc2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/f2fs_io/f2fs_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,8 +2329,8 @@ static void do_test_lookup_perf(int argc, char **argv, const struct cmd_desc *cm
23292329
if (!verb)
23302330
continue;
23312331

2332-
printf("%-8lu %-10s %-9d %-8jd %s\n",
2333-
dp->d_ino,
2332+
printf("%-8llu %-10s %-9d %-8jd %s\n",
2333+
(unsigned long long)dp->d_ino,
23342334
(dp->d_type == DT_REG) ? "regular" :
23352335
(dp->d_type == DT_DIR) ? "directory" :
23362336
(dp->d_type == DT_FIFO) ? "FIFO" :

0 commit comments

Comments
 (0)