From e6575ce308da5218c271b9bb034aa73b5da834bf Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 14 Oct 2012 04:54:20 -0400 Subject: [PATCH] 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" --- debugfs/htree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugfs/htree.c b/debugfs/htree.c index 05745eb..29ddf9c 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, -- 1.8.3.1