From: Ian Campbell Subject: Re: [PATCH] xen/arm: traps: Add missing 0x in bad_trap Date: Thu, 10 Apr 2014 13:01:30 +0100 Message-ID: <1397131290.9862.153.camel@kazak.uk.xensource.com> References: <1397130265-2389-1-git-send-email-julien.grall@linaro.org> <53468629.10705@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WYDfj-0002cE-4I for xen-devel@lists.xenproject.org; Thu, 10 Apr 2014 12:01:35 +0000 In-Reply-To: <53468629.10705@citrix.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: Andrew Cooper Cc: xen-devel@lists.xenproject.org, Julien Grall , stefano.stabellini@citrix.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-10 at 12:53 +0100, Andrew Cooper wrote: > On 10/04/14 12:44, Julien Grall wrote: > > The syndrome value is printed in hexadecimal. Prefix it by 0x for less > > confusion. > > > > Signed-off-by: Julien Grall > > Xen is trying to converge on '%#' rather than an explicit 0x. Really? I've been moving in the opposite direction because e.g. %010#lx does the wrong thing with zero (0000000000 instead of 0x00000000). Not sure about plain %#x though... > Also, it looks as if you want to do the same for IL IL must be 2 or 4, for clarity it would be better as %d rather than 0x%x I think. > > ~Andrew > > > --- > > xen/arch/arm/traps.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c > > index 9eeed92..858abe5 100644 > > --- a/xen/arch/arm/traps.c > > +++ b/xen/arch/arm/traps.c > > @@ -1616,7 +1616,7 @@ asmlinkage void do_trap_hypervisor(struct cpu_user_regs *regs) > > break; > > default: > > bad_trap: > > - printk("Hypervisor Trap. HSR=0x%x EC=0x%x IL=%x Syndrome=%"PRIx32"\n", > > + printk("Hypervisor Trap. HSR=0x%x EC=0x%x IL=%x Syndrome=0x%"PRIx32"\n", > > hsr.bits, hsr.ec, hsr.len, hsr.iss); > > do_unexpected_trap("Hypervisor", regs); > > } >