]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: nmi - die_nmi() output message unification
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 24 May 2008 15:36:32 +0000 (19:36 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 20:32:50 +0000 (22:32 +0200)
Make 64bit die_nmi() to produce the same message as 32bit mode has

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: hpa@zytor.com
Cc: mingo@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/nmi_64.c
arch/x86/kernel/traps_64.c

index 33cb8ecbb6ddf2a75d15a70c20b615ede9588ea5..1a98705270a248e466d5be74d81dca95a28a6bb9 100644 (file)
@@ -358,8 +358,8 @@ nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
                 */
                local_inc(&__get_cpu_var(alert_counter));
                if (local_read(&__get_cpu_var(alert_counter)) == 5*nmi_hz)
-                       die_nmi("NMI Watchdog detected LOCKUP on CPU %d\n", regs,
-                               panic_on_timeout);
+                       die_nmi("NMI Watchdog detected LOCKUP",
+                               regs, panic_on_timeout);
        } else {
                __get_cpu_var(last_irq_sum) = sum;
                local_set(&__get_cpu_var(alert_counter), 0);
index adff76ea97c4732de4b7766272c8b6ad26ace478..6a048ce3c787d900e9e1401d56cd8924999b6edf 100644 (file)
@@ -614,7 +614,9 @@ die_nmi(char *str, struct pt_regs *regs, int do_panic)
         * We are in trouble anyway, lets at least try
         * to get a message out.
         */
-       printk(str, smp_processor_id());
+       printk(KERN_EMERG "%s", str);
+       printk(" on CPU%d, ip %08lx, registers:\n",
+               smp_processor_id(), regs->ip);
        show_registers(regs);
        if (kexec_should_crash(current))
                crash_kexec(regs);