From: Theodore Ts'o Date: Fri, 27 Jan 2023 20:54:14 +0000 (-0500) Subject: debugfs: fix a printf format compiler warning on 64-bit architectures X-Git-Tag: v1.47.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d25847b3ce3df3adaa20a466af9fb7af287a567;p=thirdparty%2Fe2fsprogs.git debugfs: fix a printf format compiler warning on 64-bit architectures Sometimes the only way to shut up a compiler warning is to use a cast. :-( Signed-off-by: Theodore Ts'o --- diff --git a/debugfs/logdump.c b/debugfs/logdump.c index 036b50baf..b600228ed 100644 --- a/debugfs/logdump.c +++ b/debugfs/logdump.c @@ -479,7 +479,8 @@ static void dump_journal(char *cmdname, FILE *out_file, if ((blocknr == first_transaction_blocknr) && (cur_counts != 0) && dump_old && (dump_counts != -1)) { - fprintf(out_file, "Dump all %lld journal records.\n", cur_counts); + fprintf(out_file, "Dump all %lld journal records.\n", + (long long) cur_counts); break; }