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>
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();
}
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);
}