From: Ian Campbell Subject: Re: [PATCH] The BUG() macro should print the correct architecture, not a hardcoded value. Date: Fri, 11 Jan 2013 13:20:12 +0000 Message-ID: <1357910412.20328.78.camel@zakaz.uk.xensource.com> References: <1357910148-29868-1-git-send-email-lra@sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1357910148-29868-1-git-send-email-lra@sics.se> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "lra@sics.se" Cc: Lars Rasmusson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-01-11 at 13:15 +0000, lra@sics.se wrote: > From: Lars Rasmusson > > Signed-off-by: Lars Rasmusson > --- > xen/arch/arm/traps.c | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > > diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c > index f42e4e9..1909abf 100644 > --- a/xen/arch/arm/traps.c > +++ b/xen/arch/arm/traps.c > @@ -68,7 +68,23 @@ static void print_xen_info(void) > debug = 'y'; > #endif > > - printk("----[ Xen-%d.%d%s x86_64 debug=%c %s ]----\n", Oops! > +#ifdef CONFIG_ARM_32 > +#define THE_ARCH "arm_32" > +#elif CONFIG_ARM_64 > +#define THE_ARCH "arm_64" Since this is xen/arch/*arm*/traps.c you only need to handle these two cases. Ian.