All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: use key handler scratch buffer in dump_irqs()
@ 2010-03-02 12:53 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-03-02 12:53 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 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];
 
     printk("Guest interrupt information:\n");
 
@@ -1599,10 +1598,11 @@ static void dump_irqs(unsigned char key)
 
         spin_lock_irqsave(&desc->lock, flags);
 
-        cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity);
+        cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_scratch),
+                          desc->affinity);
         printk("   IRQ:%4d affinity:%s vec:%02x type=%-15s"
                " status=%08x ",
-               irq, cpustr, cfg->vector,
+               irq, keyhandler_scratch, cfg->vector,
                desc->handler->typename, desc->status);
 
         if ( !(desc->status & IRQ_GUEST) )




[-- Attachment #2: x86-dump-irq-use-scratch.patch --]
[-- Type: text/plain, Size: 1055 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 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];
 
     printk("Guest interrupt information:\n");
 
@@ -1599,10 +1598,11 @@ static void dump_irqs(unsigned char key)
 
         spin_lock_irqsave(&desc->lock, flags);
 
-        cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity);
+        cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_scratch),
+                          desc->affinity);
         printk("   IRQ:%4d affinity:%s vec:%02x type=%-15s"
                " status=%08x ",
-               irq, cpustr, cfg->vector,
+               irq, keyhandler_scratch, cfg->vector,
                desc->handler->typename, desc->status);
 
         if ( !(desc->status & IRQ_GUEST) )

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-02 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-02 12:53 [PATCH] x86: use key handler scratch buffer in dump_irqs() Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.