diff options
author | Eric Biggers <ebiggers@google.com> | 2023-01-21 12:32:10 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-01-27 12:38:31 -0500 |
commit | 37176e146147db576ae008093cdcac9b083c0f88 (patch) | |
tree | 11bc8ff3154a2a99688b36768db5346a4e7db71d | |
parent | 91b2af07bf1a7f64c52ef50044cd0aa68ff0ee06 (diff) | |
download | e2fsprogs-37176e146147db576ae008093cdcac9b083c0f88.tar.gz |
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 <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ext2fs/inline_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/inline_data.c b/lib/ext2fs/inline_data.c index b62fb6769..bd52e3770 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; |