From: Ian Campbell Subject: Re: [PATCH v2 1/2] cmdline_parse: Convert no- prefix into =no for OPT_CUSTOM Date: Mon, 4 Aug 2014 11:58:32 +0100 Message-ID: <1407149912.13395.3.camel@kazak.uk.xensource.com> References: <1406663869-31522-1-git-send-email-dslutz@verizon.com> <1406663869-31522-2-git-send-email-dslutz@verizon.com> <53D8C1B50200007800027886@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53D8C1B50200007800027886@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , Andrew Cooper , Tim Deegan , Don Slutz , xen-devel@lists.xen.org, Ian Jackson List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-30 at 08:58 +0100, Jan Beulich wrote: > convert "no-" command line option prefix into "=no" for OPT_CUSTOM > > ... to allow restoring/retaining previous behavior for options getting > converted from boolean to custom. > > Reported-by: Don Slutz > Signed-off-by: Jan Beulich > > --- a/xen/common/kernel.c > +++ b/xen/common/kernel.c > @@ -135,6 +135,13 @@ void __init cmdline_parse(const char *cm > parse_size_and_unit(optval, NULL)); > break; > case OPT_CUSTOM: > + if ( !bool_assert ) > + { > + if ( *optval ) > + break; I think this results in silently ignoring mad combinations, rather than reporting them as an error. If that was what you intended then: Acked-by: Ian Campbell