From: Darrick J. Wong Date: Tue, 12 Jul 2022 18:20:33 +0000 (-0500) Subject: xfs_logprint: fix formatting specifiers X-Git-Tag: v5.19.0-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=053fcbc7a2c1d3acb52e5c40de7971f42e3094ee;p=thirdparty%2Fxfsprogs-dev.git xfs_logprint: fix formatting specifiers 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 Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/logprint/log_print_all.c b/logprint/log_print_all.c index f7c32d6ab..8d3ede190 100644 --- a/logprint/log_print_all.c +++ b/logprint/log_print_all.c @@ -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 "