]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debugfs: Fix format string warnings in htree_dump_leaf_node()
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 19:08:36 +0000 (15:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 19:08:36 +0000 (15:08 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/htree.c

index 62dba4ade17a1fb6a801560fa06d1e845c99429c..afb7605df412ed446ace11f9cde8db7dfd013b7a 100644 (file)
@@ -48,11 +48,13 @@ static void htree_dump_leaf_node(ext2_filsys fs, ext2_ino_t ino,
                return;
        }
 
-       printf("Reading directory block %lu, phys %lu\n", blk, pblk);
+       printf("Reading directory block %lu, phys %lu\n",
+              (unsigned long) blk, (unsigned long) pblk);
        errcode = ext2fs_read_dir_block2(current_fs, pblk, buf, 0);
        if (errcode) {
                com_err("htree_dump_leaf_node", errcode,
-                       "while reading block %lu (%lu)\n", blk, pblk);
+                       "while reading block %lu (%lu)\n",
+                       (unsigned long) blk, (unsigned long) pblk);
                return;
        }
        hash_alg = rootnode->hash_version;