From: Eric Biggers Date: Sat, 21 Jan 2023 20:32:10 +0000 (-0800) Subject: lib/ext2fs: fix a printf format specifier in file_test() X-Git-Tag: v1.46.6~71 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=37176e146147db576ae008093cdcac9b083c0f88;p=tools%2Fe2fsprogs.git lib/ext2fs: fix a printf format specifier in file_test() size_t should be matched by %zu, not %lu. This fixes a -Wformat warning when building for 32-bit x86. Signed-off-by: Eric Biggers Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index b62fb67..bd52e37 100644 --- a/lib/ext2fs/inline_data.c +++ b/lib/ext2fs/inline_data.c @@ -653,7 +653,7 @@ static errcode_t file_test(ext2_filsys fs) if (size != BUFF_SIZE) { fprintf(stderr, - "tst_inline_data: size %lu != buflen %u\n", + "tst_inline_data: size %zu != buflen %u\n", size, BUFF_SIZE); retval = 1; goto err;