Whamcloud - gitweb
debugfs: fix a printf format compiler warning on 64-bit architectures
authorTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:54:14 +0000 (15:54 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 20:54:14 +0000 (15:54 -0500)
Sometimes the only way to shut up a compiler warning is to use
a cast. :-(

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/logdump.c

index 036b50b..b600228 100644 (file)
@@ -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;
                }