aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 73a96def4804..e10ad515901f 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -2893,4 +2893,20 @@ void dump_stack_print_info(const char *log_lvl)
2893 log_lvl, dump_stack_arch_desc_str); 2893 log_lvl, dump_stack_arch_desc_str);
2894} 2894}
2895 2895
2896/**
2897 * show_regs_print_info - print generic debug info for show_regs()
2898 * @log_lvl: log level
2899 *
2900 * show_regs() implementations can use this function to print out generic
2901 * debug information.
2902 */
2903void show_regs_print_info(const char *log_lvl)
2904{
2905 dump_stack_print_info(log_lvl);
2906
2907 printk("%stask: %p ti: %p task.ti: %p\n",
2908 log_lvl, current, current_thread_info(),
2909 task_thread_info(current));
2910}
2911
2896#endif 2912#endif