Commit 329237c1 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] m68knommu: add printk level for stack dump

Specify printk level in m68knommu stack dump code.
Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 19127e2b
...@@ -127,11 +127,12 @@ void show_stack(struct task_struct *task, unsigned long *stack) ...@@ -127,11 +127,12 @@ void show_stack(struct task_struct *task, unsigned long *stack)
if (stack + 1 > endstack) if (stack + 1 > endstack)
break; break;
if (i % 8 == 0) if (i % 8 == 0)
printk(KERN_EMERG "\n "); printk("\n" KERN_EMERG " ");
printk(KERN_EMERG " %08lx", *stack++); printk(" %08lx", *stack++);
} }
printk("\n");
printk(KERN_EMERG "\nCall Trace:"); printk(KERN_EMERG "Call Trace:");
i = 0; i = 0;
while (stack + 1 <= endstack) { while (stack + 1 <= endstack) {
addr = *stack++; addr = *stack++;
...@@ -146,12 +147,12 @@ void show_stack(struct task_struct *task, unsigned long *stack) ...@@ -146,12 +147,12 @@ void show_stack(struct task_struct *task, unsigned long *stack)
if (((addr >= (unsigned long) &_start) && if (((addr >= (unsigned long) &_start) &&
(addr <= (unsigned long) &_etext))) { (addr <= (unsigned long) &_etext))) {
if (i % 4 == 0) if (i % 4 == 0)
printk(KERN_EMERG "\n "); printk("\n" KERN_EMERG " ");
printk(KERN_EMERG " [<%08lx>]", addr); printk(" [<%08lx>]", addr);
i++; i++;
} }
} }
printk(KERN_EMERG "\n"); printk("\n");
} }
void bad_super_trap(struct frame *fp) void bad_super_trap(struct frame *fp)
......
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