gfs2_edit: Don't move cursor when displaying indirect blocks
PATCH 1/1 gfs2_edit: Don't move cursor when displaying indirect blocks
This move() call moves the cursor to column 9 which can cause already printed characters to be overwritten in interactive mode. Remove it so that the lines are formatted as in command line mode.
Before: " 24: 0x180x5106 / 20742" After: " 24: 0x18 => 0x5106 / 20742"
Signed-off-by Andrew Price <[email protected]>
--- gfs2/edit/extended.c | 2 -- 1 file changed, 2 deletions(-)
gfs2/edit/extended.c +0 -2
@@ -178,8 +178,6 @@ static int display_indirect(struct iinfo *ind, int indblocks, int level,print_gfs2 (" " ); }print_gfs2 ("%d: 0x%" PRIx64" => " , pndx, ind->ii[pndx].ptroff); -if (termlines) -move (line,9 );print_gfs2 ("0x%" PRIx64" / %" PRId64, ind->ii[pndx].block, ind->ii[pndx].block);if (termlines) {
Signature · 1 line
2.21.0