mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Joseph Cihula <joseph.cihula@intel.com>,
	Shane Wang <shane.wang@intel.com>
Cc: x86 <x86@kernel.org>,
	tboot-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [PATCH] arch/x86/kernel/tboot.c: Standardize pr_fmt
Date: Wed, 20 Oct 2010 11:24:17 -0700	[thread overview]
Message-ID: <1287599057.1813.229.camel@Joe-Laptop> (raw)

Move the define before any #include and use the more
standard KBUILD_MODNAME.  No change in output.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/x86/kernel/tboot.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c
index c2f1b26..b9a0077 100644
--- a/arch/x86/kernel/tboot.c
+++ b/arch/x86/kernel/tboot.c
@@ -19,6 +19,8 @@
  *
  */
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/dma_remapping.h>
 #include <linux/init_task.h>
 #include <linux/spinlock.h>
@@ -51,9 +53,6 @@ EXPORT_SYMBOL(tboot);
 /* timeout for APs (in secs) to enter wait-for-SIPI state during shutdown */
 #define AP_WAIT_TIMEOUT		1
 
-#undef pr_fmt
-#define pr_fmt(fmt)	"tboot: " fmt
-
 static u8 tboot_uuid[16] __initdata = TBOOT_UUID;
 
 void __init tboot_probe(void)



             reply	other threads:[~2010-10-20 18:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-20 18:24 Joe Perches [this message]
2010-10-28  2:00 ` Wang, Shane
2010-10-28  4:06 ` Wang, Shane

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1287599057.1813.229.camel@Joe-Laptop \
    --to=joe@perches.com \
    --cc=joseph.cihula@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shane.wang@intel.com \
    --cc=tboot-devel@lists.sourceforge.net \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®