Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0352d35
)
debugfs: fix a printf format compiler warning on 64-bit architectures
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 27 Jan 2023 20:54:14 +0000
(15:54 -0500)
committer
Theodore 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
patch
|
blob
|
history
diff --git
a/debugfs/logdump.c
b/debugfs/logdump.c
index
036b50b
..
b600228
100644
(file)
--- 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;
}