From: Ian Campbell Subject: Re: [PATCH] xen/arm: traps: Add missing 0x in bad_trap Date: Fri, 2 May 2014 16:14:23 +0100 Message-ID: <1399043663.18944.5.camel@kazak.uk.xensource.com> References: <1397130265-2389-1-git-send-email-julien.grall@linaro.org> <1399035362.32736.112.camel@kazak.uk.xensource.com> <53639B71.3050209@linaro.org> <1399036917.6043.3.camel@kazak.uk.xensource.com> <53639CE5.7020103@linaro.org> <5363C311020000780000E8E4@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WgFAS-000329-OS for xen-devel@lists.xenproject.org; Fri, 02 May 2014 15:14:28 +0000 In-Reply-To: <5363C311020000780000E8E4@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: Andrew Cooper , tim@xen.org, Julien Grall , stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-05-02 at 15:08 +0100, Jan Beulich wrote: > >>> On 02.05.14 at 15:25, wrote: > > On 05/02/2014 02:21 PM, Ian Campbell wrote: > >> On Fri, 2014-05-02 at 14:19 +0100, Julien Grall wrote: > >>> On 05/02/2014 01:56 PM, Ian Campbell wrote: > >>>> On Thu, 2014-04-10 at 12:44 +0100, Julien Grall wrote: > >>>>> The syndrome value is printed in hexadecimal. Prefix it by 0x for less > >>>>> confusion. > >>>>> > >>>>> Signed-off-by: Julien Grall > >>>> > >>>> I've acked + applied this. Irrespective of any apparent move to prefer % > >>>> #x this is an improvement. > >>> > >>> Thanks. So what was the conclusion about % vs #x. Which one shall we use? > >> > >> I'm perfectly fine with 0x%x for ARM code. I think Andy's comment about > >> "Xen moving towards" was overstating things somewhat. > > > > Ok. FIY, Jan Beulich asked me to change some 0x%x into #x in common code > > when I sent patch a couple of month ago. > > I can only repeat that: The format string is one byte shorter with > the %#x form, and since this accumulates and we shouldn't be > making the hypervisor image bigger than it needs to be, I think we > should prefer that form. We'd need > 2000 of these before there was an even chance of pushing us into the next page. Is this really the lowest hanging fruit in terms of hypervisor size? > But of course - as everywhere - the > maintainer(s) of a particular piece of code has/have the final say. TBH it's purely cosmetic, for values which one expects to see in hex I prefer to see 0x0 to 0, especially in e.g. a list of 0 and non-0 items. Ian.