diff options
author | Alasdair Kergon <agk@redhat.com> | 2009-01-10 03:14:24 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2009-01-10 03:14:24 +0000 |
commit | 1c96ddd735c710f622e1c603bc61a7cb446dcc38 (patch) | |
tree | 2f9a542c52256c8f6dd1d5a6e449d6d29f70eac7 /libdm/libdm-report.c | |
parent | 1f1aaf43eaa7f8583f9e0e1a40efc86ad781e0d2 (diff) | |
download | lvm2-1c96ddd735c710f622e1c603bc61a7cb446dcc38.tar.gz lvm2-1c96ddd735c710f622e1c603bc61a7cb446dcc38.tar.xz lvm2-1c96ddd735c710f622e1c603bc61a7cb446dcc38.zip |
Add <report_type>_all to help text.
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r-- | libdm/libdm-report.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 1be8ffc8..2f8c7470 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -254,6 +254,11 @@ static void _display_fields(struct dm_report *rh) if (strlen(rh->fields[f].id) > id_len) id_len = strlen(rh->fields[f].id); + + for (type = rh->types; type->data_fn; type++) + if (strlen(type->prefix) + 3 > id_len) + id_len = strlen(type->prefix) + 3; + for (f = 0; rh->fields[f].report_fn; f++) { if ((type = _find_type(rh, rh->fields[f].type)) && type->desc) desc = type->desc; @@ -266,6 +271,9 @@ static void _display_fields(struct dm_report *rh) log_warn("%*.*s", (int) strlen(desc) + 7, (int) strlen(desc) + 7, "-------------------------------------------------------------------------------"); + log_warn(" %sall%-*s - %s", type->prefix, + (int) (id_len - 3 - strlen(type->prefix)), "", + "All fields in this section."); } /* FIXME Add line-wrapping at terminal width (or 80 cols) */ |