device-mapper ./WHATS_NEW lib/libdm-report.c
Subsystems (2)
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2007-01-18 22:15:04
Modified files:
. : WHATS_NEW
lib : libdm-report.c
Log message:
Suppress 'Unrecognised field' error if report field is 'help'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.152&r2=1.153
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdm-report.c.diff?cvsroot=dm&r1=1.4&r2=1.5
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 1.02.16 - =================================== + Suppress 'Unrecognised field' error if report field is 'help'. Add --separator and --sort to dmsetup (unused). Make alignment flag optional when specifying report fields.
lib/libdm-report.c +3 -2
@@ -416,8 +416,9 @@if (!_field_match (rh, ws, (size_t ) (we - ws))) {_display_fields (rh);log_print (" " ); -log_error ("dm_report: Unrecognised field: %.*s" , - (int ) (we - ws), ws); +if (strcasecmp (ws,"help" ) &&strcmp (ws,"?" )) +log_error ("Unrecognised field: %.*s" , + (int ) (we - ws), ws);return 0 ; } }