]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/APIC: include full string with error_interrupt() error messages
authorElliott Mitchell <ehem+xen@m5p.com>
Thu, 13 Jul 2023 14:58:24 +0000 (16:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Jul 2023 14:58:24 +0000 (16:58 +0200)
Rather than adding ", " with each printf(), simply include them in the
string initially.  This allows converting to strlcat() or other methods
which strictly concatenate, rather than formatting.

Signed-off-by: Elliott Mitchell <ehem+xen@m5p.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/apic.c

index f71474d47dd1eb72079fb7446257e9640fa4a32f..8cfb8cd71cdf5a77db649dcc096cc418c5f06d2c 100644 (file)
@@ -1401,14 +1401,14 @@ static void cf_check spurious_interrupt(struct cpu_user_regs *regs)
 static void cf_check error_interrupt(struct cpu_user_regs *regs)
 {
     static const char *const esr_fields[] = {
-        "Send CS error",
-        "Receive CS error",
-        "Send accept error",
-        "Receive accept error",
-        "Redirectable IPI",
-        "Send illegal vector",
-        "Received illegal vector",
-        "Illegal register address",
+        "Send CS error",
+        "Receive CS error",
+        "Send accept error",
+        "Receive accept error",
+        "Redirectable IPI",
+        "Send illegal vector",
+        "Received illegal vector",
+        "Illegal register address",
     };
     unsigned int v, v1;
     int i;
@@ -1423,7 +1423,7 @@ static void cf_check error_interrupt(struct cpu_user_regs *regs)
             smp_processor_id(), v , v1);
     for ( i = 7; i >= 0; --i )
         if ( v1 & (1 << i) )
-            printk("%s", esr_fields[i]);
+            printk("%s", esr_fields[i]);
     printk("\n");
 }