From 69075d0b4386f0bd112efc237c86c340872b022f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Mon, 23 Jun 2014 10:46:45 +0200 Subject: [PATCH] select: also mark uncomparable/unselectable fields in field/selection help --- libdm/libdm-report.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 3d16e5ad8..67f63d5dd 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -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;