Skip to content

Commit cb0c54f

Browse files
amlutosfrothwell
authored andcommitted
printk: when dumping regs, show the stack, not thread_info
We currently show: task: <current> ti: <current_thread_info()> task.ti: <task_thread_info(current)>" "ti" and "task.ti" are redundant, and neither is actually what we want to show, which the the base of the thread stack. Change the display to show the stack pointer explicitly. Link: http://lkml.kernel.org/r/543ac5bd66ff94000a57a02e11af7239571a3055.1468523549.git.luto@kernel.org Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent ac6dab9 commit cb0c54f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/printk/printk.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3177,9 +3177,8 @@ void show_regs_print_info(const char *log_lvl)
31773177
{
31783178
dump_stack_print_info(log_lvl);
31793179

3180-
printk("%stask: %p ti: %p task.ti: %p\n",
3181-
log_lvl, current, current_thread_info(),
3182-
task_thread_info(current));
3180+
printk("%stask: %p task.stack: %p\n",
3181+
log_lvl, current, task_stack_page(current));
31833182
}
31843183

31853184
#endif

0 commit comments

Comments
 (0)