summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-report.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2007-01-24 16:41:33 +0000
committerAlasdair Kergon <agk@redhat.com>2007-01-24 16:41:33 +0000
commit5c46d668718d415a89bece17ff005d8dfb253721 (patch)
tree7001193f408ad9acc7ba9010a444b2d86789db07 /libdm/libdm-report.c
parent66ed1bc5e1307904af318317c6af28a43a780c9e (diff)
downloadlvm2-5c46d668718d415a89bece17ff005d8dfb253721.tar.gz
lvm2-5c46d668718d415a89bece17ff005d8dfb253721.tar.xz
lvm2-5c46d668718d415a89bece17ff005d8dfb253721.zip
Adjust report field help description layout.
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r--libdm/libdm-report.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index f3a4c8b6..9e4002c0 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -263,9 +263,14 @@ static void _display_fields(struct dm_report *rh)
if (*last_desc)
log_print(" ");
log_print("%s Fields", desc);
+ log_print("%*.*s", (int) strlen(desc) + 7,
+ (int) strlen(desc) + 7,
+ "------------------------------------------");
+
}
- log_print("- %-*s: %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc);
+ /* FIXME Add line-wrapping at terminal width (or 80 cols) */
+ log_print(" %-*s - %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc);
last_desc = desc;
}
}