aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk/printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/printk/printk.c')
-rw-r--r--kernel/printk/printk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index db4b9b8929eb..fa3de5f10e0e 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -48,6 +48,7 @@
48#include <linux/sched/clock.h> 48#include <linux/sched/clock.h>
49#include <linux/sched/debug.h> 49#include <linux/sched/debug.h>
50#include <linux/sched/task_stack.h> 50#include <linux/sched/task_stack.h>
51#include <linux/kexec.h>
51 52
52#include <linux/uaccess.h> 53#include <linux/uaccess.h>
53#include <asm/sections.h> 54#include <asm/sections.h>
@@ -3287,9 +3288,11 @@ void __init dump_stack_set_arch_desc(const char *fmt, ...)
3287 */ 3288 */
3288void dump_stack_print_info(const char *log_lvl) 3289void dump_stack_print_info(const char *log_lvl)
3289{ 3290{
3290 printk("%sCPU: %d PID: %d Comm: %.20s %s %s %.*s\n", 3291 printk("%sCPU: %d PID: %d Comm: %.20s %s%s %s %.*s\n",
3291 log_lvl, raw_smp_processor_id(), current->pid, current->comm, 3292 log_lvl, raw_smp_processor_id(), current->pid, current->comm,
3292 print_tainted(), init_utsname()->release, 3293 kexec_crash_loaded() ? "Kdump: loaded " : "",
3294 print_tainted(),
3295 init_utsname()->release,
3293 (int)strcspn(init_utsname()->version, " "), 3296 (int)strcspn(init_utsname()->version, " "),
3294 init_utsname()->version); 3297 init_utsname()->version);
3295 3298