Commit b622de31 authored by Aneesh Kumar's avatar Aneesh Kumar Committed by Linus Torvalds

[PATCH] alpha: print the symbol name in Oops

Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f4d309cf
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kallsyms.h>
#include <asm/gentrap.h> #include <asm/gentrap.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
...@@ -119,7 +120,7 @@ static void ...@@ -119,7 +120,7 @@ static void
dik_show_trace(unsigned long *sp) dik_show_trace(unsigned long *sp)
{ {
long i = 0; long i = 0;
printk("Trace:"); printk("Trace:\n");
while (0x1ff8 & (unsigned long) sp) { while (0x1ff8 & (unsigned long) sp) {
extern char _stext[], _etext[]; extern char _stext[], _etext[];
unsigned long tmp = *sp; unsigned long tmp = *sp;
...@@ -128,7 +129,9 @@ dik_show_trace(unsigned long *sp) ...@@ -128,7 +129,9 @@ dik_show_trace(unsigned long *sp)
continue; continue;
if (tmp >= (unsigned long) &_etext) if (tmp >= (unsigned long) &_etext)
continue; continue;
printk("%lx%c", tmp, ' '); printk("[<%lx>]", tmp);
print_symbol(" %s", tmp);
printk("\n");
if (i > 40) { if (i > 40) {
printk(" ..."); printk(" ...");
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment