1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

select: also mark uncomparable/unselectable fields in field/selection help

This commit is contained in:
Peter Rajnoha 2014-06-23 10:46:45 +02:00
parent 2d48ef7f04
commit 69075d0b43

View File

@ -633,8 +633,9 @@ static void _display_fields_more(struct dm_report *rh,
}
}
/* FIXME Add line-wrapping at terminal width (or 80 cols) */
log_warn(" %-*s - %s%s%s%s", (int) id_len, fields[f].id, fields[f].desc,
log_warn(" %-*s - %s%s%s%s%s", (int) id_len, fields[f].id, fields[f].desc,
display_field_types ? " [" : "",
display_field_types ? fields[f].flags & FLD_CMP_UNCOMPARABLE ? "unselectable " : "" : "",
display_field_types ? _get_field_type_name(fields[f].flags & DM_REPORT_FIELD_TYPE_MASK) : "",
display_field_types ? "]" : "");
last_desc = desc;