Commit 75fd24c1 authored by Paul Mundt's avatar Paul Mundt

sh: Tidy up backtrace formatting with kallsyms disabled.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9cfc9a9b
...@@ -115,8 +115,8 @@ void machine_power_off(void) ...@@ -115,8 +115,8 @@ void machine_power_off(void)
void show_regs(struct pt_regs * regs) void show_regs(struct pt_regs * regs)
{ {
printk("\n"); printk("\n");
printk("Pid : %d, Comm: %20s\n", task_pid_nr(current), current->comm); printk("Pid : %d, Comm: \t\t%s\n", task_pid_nr(current), current->comm);
printk("CPU : %d %s (%s %.*s)\n", printk("CPU : %d \t\t%s (%s %.*s)\n\n",
smp_processor_id(), print_tainted(), init_utsname()->release, smp_processor_id(), print_tainted(), init_utsname()->release,
(int)strcspn(init_utsname()->version, " "), (int)strcspn(init_utsname()->version, " "),
init_utsname()->version); init_utsname()->version);
......
...@@ -873,10 +873,7 @@ void show_trace(struct task_struct *tsk, unsigned long *sp, ...@@ -873,10 +873,7 @@ void show_trace(struct task_struct *tsk, unsigned long *sp,
if (regs && user_mode(regs)) if (regs && user_mode(regs))
return; return;
printk("\nCall trace: "); printk("\nCall trace:\n");
#ifdef CONFIG_KALLSYMS
printk("\n");
#endif
while (!kstack_end(sp)) { while (!kstack_end(sp)) {
addr = *sp++; addr = *sp++;
......
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