提交 9a1f490f 编写于 作者: M Michael Ellerman

powerpc/oops: Fix missing pr_cont()s in show_stack()

Previously we got away with printing the stack trace in multiple pieces
and it usually looked right.  But since commit 4bcc595c ("printk:
reinstate KERN_CONT for printing continuation lines"), KERN_CONT is now
required when printing continuation lines. Use pr_cont() as appropriate.
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 e6740ae6
...@@ -1900,14 +1900,14 @@ void show_stack(struct task_struct *tsk, unsigned long *stack) ...@@ -1900,14 +1900,14 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
printk("["REG"] ["REG"] %pS", sp, ip, (void *)ip); printk("["REG"] ["REG"] %pS", sp, ip, (void *)ip);
#ifdef CONFIG_FUNCTION_GRAPH_TRACER #ifdef CONFIG_FUNCTION_GRAPH_TRACER
if ((ip == rth) && curr_frame >= 0) { if ((ip == rth) && curr_frame >= 0) {
printk(" (%pS)", pr_cont(" (%pS)",
(void *)current->ret_stack[curr_frame].ret); (void *)current->ret_stack[curr_frame].ret);
curr_frame--; curr_frame--;
} }
#endif #endif
if (firstframe) if (firstframe)
printk(" (unreliable)"); pr_cont(" (unreliable)");
printk("\n"); pr_cont("\n");
} }
firstframe = 0; firstframe = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册