summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-06-19 15:54:22 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2014-06-19 16:14:53 +0200
commitf16da6ef23c75b966f94a27b45ca57bacaa13d20 (patch)
treedf1cf704e57235e6c96e82812658df25f3f760ac
parenta40bc36b2e360ad357820e6de2f5ec9fa64a6772 (diff)
downloadlvm2-f16da6ef23c75b966f94a27b45ca57bacaa13d20.tar.gz
report: display explicit fields first, then implicit fields in field help
It's better to have implicit fields at the very end of the output so users can see them without scrolling back if the list of fields is long (the "help" is also an implicit field now so it should be easily visible).
-rw-r--r--libdm/libdm-report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index 012dca464..fd03052f1 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -653,11 +653,12 @@ static void _display_fields(struct dm_report *rh, int display_all_fields_item,
if ((tmp = _get_longest_field_id_len(rh->fields)) > id_len)
id_len = tmp;
- _display_fields_more(rh, _implicit_report_fields, id_len,
- display_all_fields_item, display_field_types);
- log_warn(" ");
_display_fields_more(rh, rh->fields, id_len, display_all_fields_item,
display_field_types);
+ log_warn(" ");
+ _display_fields_more(rh, _implicit_report_fields, id_len,
+ display_all_fields_item, display_field_types);
+
}
/*