]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Use KERN_ALERT more for oopses
authorAndi Kleen <ak@suse.de>
Sat, 5 Jun 2004 03:57:01 +0000 (20:57 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 5 Jun 2004 03:57:01 +0000 (20:57 -0700)
Often users only report what syslogd reports with KERN_ALERT when a kernel
crash occurs.  Make an oops print mpre information with that (in particular
the RIP)

Patch for i386 and x86-64.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/traps.c
arch/i386/mm/fault.c

index 4a6226309b49e19d61d6164e9050b151a0530628..f031de0588089595d4cdee4c11e0df35c407b455 100644 (file)
@@ -283,7 +283,7 @@ static void handle_BUG(struct pt_regs *regs)
                file = "<bad filename>";
 
        printk("------------[ cut here ]------------\n");
-       printk("kernel BUG at %s:%d!\n", file, line);
+       printk(KERN_ALERT "kernel BUG at %s:%d!\n", file, line);
 
 no_bug:
        return;
@@ -304,7 +304,7 @@ void die(const char * str, struct pt_regs * regs, long err)
        spin_lock_irq(&die_lock);
        bust_spinlocks(1);
        handle_BUG(regs);
-       printk("%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter);
+       printk(KERN_ALERT "%s: %04lx [#%d]\n", str, err & 0xffff, ++die_counter);
 #ifdef CONFIG_PREEMPT
        printk("PREEMPT ");
        nl = 1;
index dcec5e732cf6293e8fdd41783de55195b14a0ff7..0c77e0b071ebf7b8e3a10f6e7a3b2800edfe1af8 100644 (file)
@@ -411,7 +411,7 @@ no_context:
        else
                printk(KERN_ALERT "Unable to handle kernel paging request");
        printk(" at virtual address %08lx\n",address);
-       printk(" printing eip:\n");
+       printk(KERN_ALERT " printing eip:\n");
        printk("%08lx\n", regs->eip);
        asm("movl %%cr3,%0":"=r" (page));
        page = ((unsigned long *) __va(page))[address >> 22];