From: Theodore Ts'o Date: Sun, 14 Oct 2012 08:54:20 +0000 (-0400) Subject: debugfs: fix htree command so that all printf's go through the pager X-Git-Tag: v1.42.7~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6575ce308da5218c271b9bb034aa73b5da834bf;p=thirdparty%2Fe2fsprogs.git debugfs: fix htree command so that all printf's go through the pager 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" --- diff --git a/debugfs/htree.c b/debugfs/htree.c index 05745eb3b..29ddf9c56 100644 --- a/debugfs/htree.c +++ b/debugfs/htree.c @@ -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,