Skip to contentSkip to conversation

x86/hyperv: Add common print prefix "Hyper-V" in hv_init

PATCH Applied Saurabh Sengar 2 participants 2 messages Sep 19, 2023 – Sep 22, 2023

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

PATCH 1/1 x86/hyperv: Add common print prefix "Hyper-V" in hv_init

Add "#define pr_fmt()" in hv_init.c to use "Hyper-V:" as common print prefix for all pr_*() statements in this file.

Remove the "Hyper-V:" already prefixed in couple of prints.

---
 arch/x86/hyperv/hv_init.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/x86/hyperv/hv_init.c +4 -2
index 953e280c07c3..1c973067f008 100644
@@ -7,6 +7,8 @@
  * Author : K. Y. Srinivasan <[email protected]>
  */
 
+#define pr_fmt(fmt)  "Hyper-V: " fmt
+
 #include <linux/efi.h>
 #include <linux/types.h>
 #include <linux/bitfield.h>
@@ -176,7 +178,7 @@ void set_hv_tscchange_cb(void (*cb)(void))
 	struct hv_tsc_emulation_control emu_ctrl = {.enabled = 1};
 
 	if (!hv_reenlightenment_available()) {
-		pr_warn("Hyper-V: reenlightenment support is unavailable\n");
+		pr_warn("reenlightenment support is unavailable\n");
 		return;
 	}
 
@@ -488,7 +490,7 @@ void __init hyperv_init(void)
 	if (cpu_feature_enabled(X86_FEATURE_IBT) &&
 	    *(u32 *)hv_hypercall_pg != gen_endbr()) {
 		setup_clear_cpu_cap(X86_FEATURE_IBT);
-		pr_warn("Hyper-V: Disabling IBT because of Hyper-V bug\n");
+		pr_warn("Disabling IBT because of Hyper-V bug\n");
 	}
 #endif
 
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Saurabh Sengar

Add "#define pr_fmt()" in hv_init.c to use "Hyper-V:" as common print prefix for all pr_*() statements in this file.

Remove the "Hyper-V:" already prefixed in couple of prints.

Applied to hyperv-fixes. Thanks.