]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
lib/ext2fs: fix a printf format specifier in file_test()
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:10 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
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>
lib/ext2fs/inline_data.c

index b62fb676931f593ad96e6dc6797311d6e3a87ad4..bd52e37708ccad47f5c983e75776db14eca814a4 100644 (file)
@@ -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;