mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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).
This commit is contained in:
parent
a40bc36b2e
commit
f16da6ef23
@ -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);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user