diff options
Diffstat (limited to 'kernel/panic.c')
| -rw-r--r-- | kernel/panic.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 167ec097ce8b..801864600514 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
| @@ -15,6 +15,7 @@ | |||
| 15 | #include <linux/notifier.h> | 15 | #include <linux/notifier.h> |
| 16 | #include <linux/module.h> | 16 | #include <linux/module.h> |
| 17 | #include <linux/random.h> | 17 | #include <linux/random.h> |
| 18 | #include <linux/ftrace.h> | ||
| 18 | #include <linux/reboot.h> | 19 | #include <linux/reboot.h> |
| 19 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
| 20 | #include <linux/kexec.h> | 21 | #include <linux/kexec.h> |
| @@ -399,8 +400,11 @@ struct slowpath_args { | |||
| 399 | static void warn_slowpath_common(const char *file, int line, void *caller, | 400 | static void warn_slowpath_common(const char *file, int line, void *caller, |
| 400 | unsigned taint, struct slowpath_args *args) | 401 | unsigned taint, struct slowpath_args *args) |
| 401 | { | 402 | { |
| 402 | printk(KERN_WARNING "------------[ cut here ]------------\n"); | 403 | disable_trace_on_warning(); |
| 403 | printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); | 404 | |
| 405 | pr_warn("------------[ cut here ]------------\n"); | ||
| 406 | pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS()\n", | ||
| 407 | raw_smp_processor_id(), current->pid, file, line, caller); | ||
| 404 | 408 | ||
| 405 | if (args) | 409 | if (args) |
| 406 | vprintk(args->fmt, args->args); | 410 | vprintk(args->fmt, args->args); |
