aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-07-28 18:48:23 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-07-28 19:07:41 -0400
commit8b70ca65616b3588ea1907e87f0df6d2530350df (patch)
treef250a97877486be3f45035bfb270d9706ac81cd9 /kernel/printk
parente558af65be65713ef2e8b2aa637c6263caeed172 (diff)
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/printk')
-rw-r--r--kernel/printk/printk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 60cdf6386763..d4de33934dac 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -3177,9 +3177,8 @@ void show_regs_print_info(const char *log_lvl)
3177{ 3177{
3178 dump_stack_print_info(log_lvl); 3178 dump_stack_print_info(log_lvl);
3179 3179
3180 printk("%stask: %p ti: %p task.ti: %p\n", 3180 printk("%stask: %p task.stack: %p\n",
3181 log_lvl, current, current_thread_info(), 3181 log_lvl, current, task_stack_page(current));
3182 task_thread_info(current));
3183} 3182}
3184 3183
3185#endif 3184#endif