Skip to contentSkip to conversation

master - report: display explicit fields first, then implicit fields in field help

PATCH Peter Rajnoha 1 participant 1 message Jun 19, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f16da6ef23c75b966f94a27b45ca57bacaa13d20
Commit:        f16da6ef23c75b966f94a27b45ca57bacaa13d20
Parent:        a40bc36b2e360ad357820e6de2f5ec9fa64a6772
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Thu Jun 19 15:54:22 2014 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Thu Jun 19 16:14:53 2014 +0200

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).

---
 libdm/libdm-report.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
libdm/libdm-report.c +4 -3
index 012dca4..fd03052 100644
@@ -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);
+
 }
 
 /*