device-mapper/lib libdm-report.c
Subsystems (2)
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2007-01-24 16:41:34
Modified files:
lib : libdm-report.c
Log message:
Adjust report field help description layout.
lib/libdm-report.c +6 -1
@@ -263,9 +263,14 @@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; } }