Commit 8b70ca65 authored by Andy Lutomirski's avatar Andy Lutomirski Committed by Linus Torvalds

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: default avatarAndy Lutomirski <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent e558af65
......@@ -3177,9 +3177,8 @@ void show_regs_print_info(const char *log_lvl)
printk("%stask: %p ti: %p task.ti: %p\n",
log_lvl, current, current_thread_info(),
printk("%stask: %p task.stack: %p\n",
log_lvl, current, task_stack_page(current));
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