From: "Jan Beulich" Subject: Re: [PATCH v2 1/2] cmdline_parse: Convert no- prefix into =no for OPT_CUSTOM Date: Mon, 04 Aug 2014 12:39:41 +0100 Message-ID: <53DF8D1D0200007800028FB2@mail.emea.novell.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> <1407149912.13395.3.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1407149912.13395.3.camel@kazak.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: KeirFraser , Andrew Cooper , Tim Deegan , Don Slutz , xen-devel@lists.xen.org, Ian Jackson List-Id: xen-devel@lists.xenproject.org >>> On 04.08.14 at 12:58, wrote: > 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: Yes, it was (mentioned in the thread that led here): The resulting message is only of limited use, as it wouldn't possibly make it to the (serial) console. > Acked-by: Ian Campbell Thanks, Jan