Commit dcb6b452 authored by Alex Thorlton's avatar Alex Thorlton Committed by Linus Torvalds

panic: add cpu/pid to warn_slowpath_common in WARNING printk()s

Add the cpu/pid that called WARN() so that the stack traces can be
matched up with the WARNING messages.

[akpm@linux-foundation.org: remove stray quote]
Signed-off-by: default avatarAlex Thorlton <athorlton@sgi.com>
Reviewed-by: default avatarRobin Holt <holt@sgi.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Vikram Mulukutla <markivx@codeaurora.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0a1be150
...@@ -399,8 +399,9 @@ struct slowpath_args { ...@@ -399,8 +399,9 @@ struct slowpath_args {
static void warn_slowpath_common(const char *file, int line, void *caller, static void warn_slowpath_common(const char *file, int line, void *caller,
unsigned taint, struct slowpath_args *args) unsigned taint, struct slowpath_args *args)
{ {
printk(KERN_WARNING "------------[ cut here ]------------\n"); pr_warn("------------[ cut here ]------------\n");
printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS()\n",
raw_smp_processor_id(), current->pid, file, line, caller);
if (args) if (args)
vprintk(args->fmt, args->args); vprintk(args->fmt, args->args);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment