Whamcloud - gitweb
debugfs: fix the printf specifier when dumping a fast commit block
authorTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 21:44:39 +0000 (16:44 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Jan 2021 21:44:39 +0000 (16:44 -0500)
Addresses-Coverity-Bug: 1472249
Addresses-Coverity-Bug: 1472253
Addresses-Coverity-Bug: 1472254
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/logdump.c

index 151be3e..a94043f 100644 (file)
@@ -536,7 +536,7 @@ static void dump_fc_block(FILE *out_file, char *buf, int blocksize,
                                (struct ext4_fc_add_range *)ext4_fc_tag_val(tl);
                        ex = (struct ext3_extent *)add_range->fc_ex;
                        fprintf(out_file,
-                               "tag %s, inode %d, lblk %d, pblk %ld, len %d\n",
+                               "tag %s, inode %d, lblk %lu, pblk %llu, len %lu\n",
                                tag2str(tl->fc_tag),
                                le32_to_cpu(add_range->fc_ino),
                                le32_to_cpu(ex->ee_block),