]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_logprint: fix formatting specifiers
authorDarrick J. Wong <djwong@kernel.org>
Tue, 12 Jul 2022 18:20:33 +0000 (13:20 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 12 Jul 2022 18:20:33 +0000 (13:20 -0500)
Fix a missing %u -> %PRIu32 conversion, and add the required '%' in the
format specifiers because PRIu{32,64} do not include it on their own.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
logprint/log_print_all.c

index f7c32d6abad8180eed96fded1b20c4e00828c864..8d3ede190e5f8c6866c67a44fc01b93352bd6ee5 100644 (file)
@@ -267,7 +267,7 @@ xlog_recover_print_inode_core(
                        xlog_extract_dinode_ts(di->di_ctime));
        printf(_("              flushiter:%d\n"), di->di_flushiter);
        printf(_("              size:0x%llx  nblks:0x%llx  exsize:%d  "
-            "nextents:" PRIu64 "  anextents:%u\n"), (unsigned long long)
+            "nextents:%" PRIu64 "  anextents:%" PRIu32 "\n"), (unsigned long long)
               di->di_size, (unsigned long long)di->di_nblocks,
               di->di_extsize, nextents, anextents);
        printf(_("              forkoff:%d  dmevmask:0x%x  dmstate:%d  flags:0x%x  "