Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1508801 > unrolled thread

[PATCH v2 1/3] kernel/smp: Define pr_fmt() for smp.c

Started byMichael Ellerman <mpe@ellerman.id.au>
First post2016-10-26 07:40 +0200
Last post2016-10-26 12:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 1/3] kernel/smp: Define pr_fmt() for smp.c Michael Ellerman <mpe@ellerman.id.au> - 2016-10-26 07:40 +0200
    [tip:core/smp] kernel/smp: Define pr_fmt() for smp.c tip-bot for Michael Ellerman <tipbot@zytor.com> - 2016-10-26 12:10 +0200

#1508801 — [PATCH v2 1/3] kernel/smp: Define pr_fmt() for smp.c

FromMichael Ellerman <mpe@ellerman.id.au>
Date2016-10-26 07:40 +0200
Subject[PATCH v2 1/3] kernel/smp: Define pr_fmt() for smp.c
Message-ID<swp6p-7GM-3@gated-at.bofh.it>
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 <bp@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 kernel/smp.c | 3 +++
 1 file changed, 3 insertions(+)

v2: New in v2.

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

[toc] | [next] | [standalone]


#1509021 — [tip:core/smp] kernel/smp: Define pr_fmt() for smp.c

Fromtip-bot for Michael Ellerman <tipbot@zytor.com>
Date2016-10-26 12:10 +0200
Subject[tip:core/smp] kernel/smp: Define pr_fmt() for smp.c
Message-ID<swtjI-2by-5@gated-at.bofh.it>
In reply to#1508801
Commit-ID:  ca7dfdbb33675151ad0854aea11340f95c38aff3
Gitweb:     http://git.kernel.org/tip/ca7dfdbb33675151ad0854aea11340f95c38aff3
Author:     Michael Ellerman <mpe@ellerman.id.au>
AuthorDate: Wed, 26 Oct 2016 16:37:53 +1100
Committer:  Thomas Gleixner <tglx@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 <bp@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: akpm@osdl.org
Cc: jgross@suse.com
Cc: ak@linux.intel.com
Cc: tim.c.chen@linux.intel.com
Cc: len.brown@intel.com
Cc: peterz@infradead.org
Cc: richard@nod.at
Cc: jolsa@redhat.com
Cc: boris.ostrovsky@oracle.com
Cc: mgorman@techsingularity.net
Link: http://lkml.kernel.org/r/1477460275-8266-1-git-send-email-mpe@ellerman.id.au
Signed-off-by: Thomas Gleixner <tglx@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.axboe@oracle.com> 2008
  */
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/irq_work.h>
 #include <linux/rcupdate.h>
 #include <linux/rculist.h>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web