Skip to contentSkip to conversation

arch/x86/kernel/tboot.c: Standardize pr_fmt

PATCH In review Joe Perches 2 participants 3 messages Oct 20, 2010 – Oct 28, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/x86/kernel/tboot.c: Standardize pr_fmt

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

---
 arch/x86/kernel/tboot.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/kernel/tboot.c +2 -3
index c2f1b26..b9a0077 100644
@@ -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)
#1 lore raw

ACK

Shane

Quoted 31 lines · Joe Perches

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

---
 arch/x86/kernel/tboot.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/kernel/tboot.c +2 -3
index c2f1b26..b9a0077 100644
@@ -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)
Acked-by on v1 1/1
#2 lore raw
In reply to Joe Perches

<resend>

Quoted 31 lines · Joe Perches

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

---
 arch/x86/kernel/tboot.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/kernel/tboot.c +2 -3
index c2f1b26..b9a0077 100644
@@ -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)