Message ID | 20230718033728.1286392-1-jaegeuk@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [f2fs-dev] f2fs_io: fix build warning | expand |
diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index b4e73079e76c..73ac700f8209 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -1447,7 +1447,7 @@ static void do_gc_range(int argc, char **argv, const struct cmd_desc *cmd) die_errno("F2FS_IOC_GARBAGE_COLLECT_RANGE failed"); } - printf("trigger %s gc_range [%lu, %lu] ret=%d\n", + printf("trigger %s gc_range [%"PRIu64", %"PRIu64"] ret=%d\n", range.sync ? "synchronous" : "asynchronous", range.start, range.len, ret); exit(0);
external/f2fs-tools/tools/f2fs_io/f2fs_io.c:1452:3: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat] range.start, range.len, ret); ^~~~~~~~~~~ external/f2fs-tools/tools/f2fs_io/f2fs_io.c:1452:16: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat] range.start, range.len, ret); ^~~~~~~~~ 2 errors generated. 20:35:27 ninja failed with: exit status 1 Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- tools/f2fs_io/f2fs_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)