Commit-ID:  ca7dfdbb33675151ad0854aea11340f95c38aff3
Gitweb:     http://git.kernel.org/tip/ca7dfdbb33675151ad0854aea11340f95c38aff3
Author:     Michael Ellerman <m...@ellerman.id.au>
AuthorDate: Wed, 26 Oct 2016 16:37:53 +1100
Committer:  Thomas Gleixner <t...@linutronix.de>
CommitDate: Wed, 26 Oct 2016 12:02:35 +0200

kernel/smp: Define pr_fmt() for smp.c

This makes all our pr_xxx()'s start with "smp: ", which helps pin down
where they come from and generally looks nice. There is actually only
one pr_xxx() use in smp.c at the moment, but we will add some more in
the next commit.

Suggested-by: Borislav Petkov <b...@suse.de>
Signed-off-by: Michael Ellerman <m...@ellerman.id.au>
Cc: a...@osdl.org
Cc: jgr...@suse.com
Cc: a...@linux.intel.com
Cc: tim.c.c...@linux.intel.com
Cc: len.br...@intel.com
Cc: pet...@infradead.org
Cc: rich...@nod.at
Cc: jo...@redhat.com
Cc: boris.ostrov...@oracle.com
Cc: mgor...@techsingularity.net
Link: 
http://lkml.kernel.org/r/1477460275-8266-1-git-send-email-...@ellerman.id.au
Signed-off-by: Thomas Gleixner <t...@linutronix.de>

---
 kernel/smp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/smp.c b/kernel/smp.c
index bba3b20..2d1f15d 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -3,6 +3,9 @@
  *
  * (C) Jens Axboe <jens.ax...@oracle.com> 2008
  */
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/irq_work.h>
 #include <linux/rcupdate.h>
 #include <linux/rculist.h>

Reply via email to