aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-10-14 04:54:20 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-10-14 04:54:20 -0400
commite6575ce308da5218c271b9bb034aa73b5da834bf (patch)
tree56e58ce29e4fc8015c0786711f72e87c561437d8 /debugfs
parentdd0c9a3c9cfdd250bfac283da05fd8920c823977 (diff)
downloadandroid_external_e2fsprogs-e6575ce308da5218c271b9bb034aa73b5da834bf.tar.gz
android_external_e2fsprogs-e6575ce308da5218c271b9bb034aa73b5da834bf.tar.bz2
android_external_e2fsprogs-e6575ce308da5218c271b9bb034aa73b5da834bf.zip
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" <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/htree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugfs/htree.c b/debugfs/htree.c
index 05745eb3..29ddf9c5 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,