Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=87f... Commit: 87f0950748b045b50e7ce18a8baf6e0ac81a1492 Parent: 4cb8599397ca7a519e5b95b76824536b8c4b6e33 Author: Bob Peterson rpeterso@redhat.com AuthorDate: Wed Feb 2 15:57:18 2011 -0600 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Thu Feb 3 11:25:35 2011 -0600
gfs2_edit: print large block numbers better
The gfs2_edit tool was obscuring block number on the display when the block number got big enough. This patch makes it print the block number so that it looks better when it gets big.
rhbz#674843 --- gfs2/edit/hexedit.c | 14 +++----------- 1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c index 467885e..4fc8a43 100644 --- a/gfs2/edit/hexedit.c +++ b/gfs2/edit/hexedit.c @@ -1059,18 +1059,10 @@ int display_block_type(int from_restore) if (termlines) { if (edit_row[dmode] == -1) COLORS_NORMAL; - move(line,30); - } - else - print_gfs2(" "); - if (!from_restore) { - print_gfs2("of %" PRIu64 " (0x%" PRIx64 ")", max_block, - max_block); - if (termlines) - move(line, 55); - else - printf(" "); } + print_gfs2(" "); + if (!from_restore) + print_gfs2("of %llu (0x%llx) ", max_block, max_block); if (block == RGLIST_DUMMY_BLOCK) { ret_type = GFS2_METATYPE_RG; struct_len = gfs1 ? sizeof(struct gfs_rgrp) : sizeof(struct gfs2_rgrp);
cluster-commits@lists.fedorahosted.org