From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Durrant Subject: RE: [Xen-devel] [PATCH] xen-netback: correct return value checks on xenbus_scanf() Date: Thu, 7 Jul 2016 10:42:09 +0000 Message-ID: <4bfd699bcc4a4f7a96bbbdfcac4f8609@AMSPEX02CL03.citrite.net> References: <577E277C02000078000FBEBB@prv-mh.provo.novell.com> <577E27B8.2050603@citrix.com> <20160707103513.GB416@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Cc: Jan Beulich , Wei Liu , "xen-devel@lists.xenproject.org" , "netdev@vger.kernel.org" To: Wei Liu , David Vrabel Return-path: Received: from smtp.ctxuk.citrix.com ([185.25.65.24]:64041 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751769AbcGGKpj convert rfc822-to-8bit (ORCPT ); Thu, 7 Jul 2016 06:45:39 -0400 Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: > -----Original Message----- > From: Paul Durrant > Sent: 07 July 2016 11:41 > To: Wei Liu; David Vrabel > Cc: Jan Beulich; Wei Liu; xen-devel@lists.xenproject.org; > netdev@vger.kernel.org > Subject: RE: [Xen-devel] [PATCH] xen-netback: correct return value checks > on xenbus_scanf() > > > -----Original Message----- > > From: netdev-owner@vger.kernel.org [mailto:netdev- > > owner@vger.kernel.org] On Behalf Of Wei Liu > > Sent: 07 July 2016 11:35 > > To: David Vrabel > > Cc: Jan Beulich; Wei Liu; xen-devel@lists.xenproject.org; > > netdev@vger.kernel.org > > Subject: Re: [Xen-devel] [PATCH] xen-netback: correct return value checks > > on xenbus_scanf() > > > > On Thu, Jul 07, 2016 at 10:58:16AM +0100, David Vrabel wrote: > > > On 07/07/16 08:57, Jan Beulich wrote: > > > > Only a positive return value indicates success. > > > > > > This is not correct. > > > > > If Xen's vsscanf follows the semantics of scanf(3) then 0 is a failure so I think > the comment is correct. > s/Xen/the kernel/ > Paul > > > > > Do you mean the commit message is not correct or the code is not > > correct? If it is the formal, do you have any suggestion to fix it? > > > > (I was going to just ack this because Paul already reviewed it) > > > > Wei. > > > > > David