From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: [PATCH] x86: use key handler scratch buffer in dump_irqs() Date: Tue, 02 Mar 2010 12:53:27 +0000 Message-ID: <4B8D185702000078000321FF@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartF3D93857.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartF3D93857.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- 2010-03-02.orig/xen/arch/x86/irq.c 2010-02-01 08:34:54.000000000 = +0100 +++ 2010-03-02/xen/arch/x86/irq.c 2010-03-02 09:23:24.000000000 = +0100 @@ -1584,7 +1584,6 @@ static void dump_irqs(unsigned char key) irq_guest_action_t *action; struct domain *d; unsigned long flags; - char cpustr[NR_CPUS/4+NR_CPUS/32+2]; =20 printk("Guest interrupt information:\n"); =20 @@ -1599,10 +1598,11 @@ static void dump_irqs(unsigned char key) =20 spin_lock_irqsave(&desc->lock, flags); =20 - cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity); + cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_scratch), + desc->affinity); printk(" IRQ:%4d affinity:%s vec:%02x type=3D%-15s" " status=3D%08x ", - irq, cpustr, cfg->vector, + irq, keyhandler_scratch, cfg->vector, desc->handler->typename, desc->status); =20 if ( !(desc->status & IRQ_GUEST) ) --=__PartF3D93857.0__= Content-Type: text/plain; name="x86-dump-irq-use-scratch.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-dump-irq-use-scratch.patch" Signed-off-by: Jan Beulich =0A=0A--- 2010-03-02.orig/x= en/arch/x86/irq.c 2010-02-01 08:34:54.000000000 +0100=0A+++ = 2010-03-02/xen/arch/x86/irq.c 2010-03-02 09:23:24.000000000 +0100=0A@@ = -1584,7 +1584,6 @@ static void dump_irqs(unsigned char key)=0A = irq_guest_action_t *action;=0A struct domain *d;=0A unsigned long = flags;=0A- char cpustr[NR_CPUS/4+NR_CPUS/32+2];=0A =0A printk("Guest= interrupt information:\n");=0A =0A@@ -1599,10 +1598,11 @@ static void = dump_irqs(unsigned char key)=0A =0A spin_lock_irqsave(&desc->lock, = flags);=0A =0A- cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affi= nity);=0A+ cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_s= cratch),=0A+ desc->affinity);=0A printk(" = IRQ:%4d affinity:%s vec:%02x type=3D%-15s"=0A " status=3D%= 08x ",=0A- irq, cpustr, cfg->vector,=0A+ irq, = keyhandler_scratch, cfg->vector,=0A desc->handler->typename,= desc->status);=0A =0A if ( !(desc->status & IRQ_GUEST) )=0A --=__PartF3D93857.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartF3D93857.0__=--