From: Andrew Price Date: Fri, 13 Sep 2019 18:03:46 +0100 Subject: [Cluster-devel] [PATCH] gfs2_edit: Don't move cursor when displaying indirect blocks Message-ID: <20190913170346.32102-1-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- gfs2/edit/extended.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gfs2/edit/extended.c b/gfs2/edit/extended.c index d24d7550..f38fc7bf 100644 --- a/gfs2/edit/extended.c +++ b/gfs2/edit/extended.c @@ -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) { -- 2.21.0