Commit 71611b37 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by Greg Kroah-Hartman

alpha: fix formating of stack content

commit 4b01abdb upstream.

Since version 4.9, the kernel automatically breaks printk calls into
multiple newlines unless pr_cont is used. Fix the alpha stacktrace code,
so that it prints stack trace in four columns, as it was initially
intended.
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7d22d92c
...@@ -158,11 +158,16 @@ void show_stack(struct task_struct *task, unsigned long *sp) ...@@ -158,11 +158,16 @@ void show_stack(struct task_struct *task, unsigned long *sp)
for(i=0; i < kstack_depth_to_print; i++) { for(i=0; i < kstack_depth_to_print; i++) {
if (((long) stack & (THREAD_SIZE-1)) == 0) if (((long) stack & (THREAD_SIZE-1)) == 0)
break; break;
if (i && ((i % 4) == 0)) if ((i % 4) == 0) {
printk("\n "); if (i)
printk("%016lx ", *stack++); pr_cont("\n");
printk(" ");
} else {
pr_cont(" ");
}
pr_cont("%016lx", *stack++);
} }
printk("\n"); pr_cont("\n");
dik_show_trace(sp); dik_show_trace(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