]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debugfs: fix htree command so that all printf's go through the pager
authorTheodore Ts'o <tytso@mit.edu>
Sun, 14 Oct 2012 08:54:20 +0000 (04:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 Oct 2012 08:54:20 +0000 (04:54 -0400)
The "Reading directory block XXX..." message was not being sent
through the pager, which would result in confusing output.

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

index 05745eb3b4b7d33fdfe8c04ffae19433cbc581a1..29ddf9c5639977a965b1f9ed2aedcf279a686fee 100644 (file)
@@ -52,7 +52,7 @@ static void htree_dump_leaf_node(ext2_filsys fs, ext2_ino_t ino,
                return;
        }
 
-       printf("Reading directory block %llu, phys %llu\n", blk, pblk);
+       fprintf(pager, "Reading directory block %llu, phys %llu\n", blk, pblk);
        errcode = ext2fs_read_dir_block2(current_fs, pblk, buf, 0);
        if (errcode) {
                com_err("htree_dump_leaf_node", errcode,