arm: tweak/improve logging for host SMP
authorIan Campbell <ian.campbell@citrix.com>
Wed, 6 Mar 2013 08:54:36 +0000 (08:54 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Apr 2013 08:35:37 +0000 (09:35 +0100)
Make the "CPU<n> booted" message fit in with the surrounding logging.

Log which CPU is taking an unexpected trap.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/smpboot.c
xen/arch/arm/traps.c

index 1bebf866dd157ae548988814462b6fa87aa018a3..bd353c897d5f2c1d7cde3867e9a54055bc0fc8f3 100644 (file)
@@ -178,7 +178,7 @@ void __cpuinit start_secondary(unsigned long boot_phys_offset,
 
     local_irq_enable();
 
-    dprintk(XENLOG_DEBUG, "CPU %u booted.\n", smp_processor_id());
+    printk(XENLOG_DEBUG "CPU %u booted.\n", smp_processor_id());
 
     startup_cpu_idle_loop();
 }
index a8b5f15aea6950512722b68abbebc4c0a224c197..b7487b7afdfdc1d9989a8e74663eef489e82f18f 100644 (file)
@@ -577,7 +577,7 @@ void vcpu_show_execution_state(struct vcpu *v)
 
 void do_unexpected_trap(const char *msg, struct cpu_user_regs *regs)
 {
-    printk("Unexpected Trap: %s\n", msg);
+    printk("CPU%d: Unexpected Trap: %s\n", smp_processor_id(), msg);
     show_execution_state(regs);
     while(1);
 }