From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [v7][PATCH 16/16] tools: parse to enable new rdm policy parameters Date: Mon, 13 Jul 2015 11:17:26 +0100 Message-ID: <1436782646.7019.76.camel@citrix.com> References: <1436420047-25356-1-git-send-email-tiejun.chen@intel.com> <1436420047-25356-17-git-send-email-tiejun.chen@intel.com> <21918.48191.157583.452591@mariner.uk.xensource.com> <559F60AB.2060402@intel.com> <21919.40225.618413.570220@mariner.uk.xensource.com> <55A38583.9080204@intel.com> <1436780431.7019.54.camel@citrix.com> <55A38B0F.1050608@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55A38B0F.1050608@intel.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: "Chen, Tiejun" Cc: Wei Liu , xen-devel@lists.xen.org, Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 2015-07-13 at 17:55 +0800, Chen, Tiejun wrote: > On 2015/7/13 17:40, Ian Campbell wrote: > > On Mon, 2015-07-13 at 17:31 +0800, Chen, Tiejun wrote: > >> I still can't understand what I'm missing here after compared to other > >> contexts inside xlu_pci_parse_bdf(). > > > > Perhaps comparing to the CODING_STYLE document would help? > > Looks the whole xlu_pci_parse_bdf() doesn't follow that, > > if ( !strcmp(optkey, "msitranslate") ) { > pcidev->msitranslate = atoi(tok); > }else if ( !strcmp(optkey, "power_mgmt") ) { > pcidev->power_mgmt = atoi(tok); > }else if ( !strcmp(optkey, "permissive") ) { > pcidev->permissive = atoi(tok); > }else if ( !strcmp(optkey, "seize") ) { > pcidev->seize = atoi(tok); > }else if ( !strcmp(optkey, "rdm_policy") ) { > > So I can do this as you're expecting now, but seems our change would > make the code style very inconsistent inside this function. I think one could make an argument that the exception described in the first section of tools/libxl/CODING_STYLE applies here for the whitespace issues, but not for the long lines I think. Ian.