Skip to contentSkip to conversation

KVM: s390: fix kmsg component kvm-s390

GIT PULL Christian Borntraeger 1 participant 1 message Dec 19, 2018

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

From: Michael Mueller <[email protected]>

Relocate #define statement for kvm related kernel messages before the include of printk to become effective.

---
 arch/s390/kvm/kvm-s390.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
arch/s390/kvm/kvm-s390.c +3 -4
index d8d8e07881577..530b4175f56db 100644
@@ -11,6 +11,9 @@
  *               Jason J. Herne <[email protected]>
  */
 
+#define KMSG_COMPONENT "kvm-s390"
+#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+
 #include <linux/compiler.h>
 #include <linux/err.h>
 #include <linux/fs.h>
@@ -44,10 +47,6 @@
 #include "kvm-s390.h"
 #include "gaccess.h"
 
-#define KMSG_COMPONENT "kvm-s390"
-#undef pr_fmt
-#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
-
 #define CREATE_TRACE_POINTS
 #include "trace.h"
 #include "trace-s390.h"
Signature · 1 line
2.19.1