aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/panic.c b/kernel/panic.c
index 167ec097ce8b..97712319f128 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -399,8 +399,9 @@ struct slowpath_args {
399static void warn_slowpath_common(const char *file, int line, void *caller, 399static void warn_slowpath_common(const char *file, int line, void *caller,
400 unsigned taint, struct slowpath_args *args) 400 unsigned taint, struct slowpath_args *args)
401{ 401{
402 printk(KERN_WARNING "------------[ cut here ]------------\n"); 402 pr_warn("------------[ cut here ]------------\n");
403 printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); 403 pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS()\n",
404 raw_smp_processor_id(), current->pid, file, line, caller);
404 405
405 if (args) 406 if (args)
406 vprintk(args->fmt, args->args); 407 vprintk(args->fmt, args->args);