Skip to content

Commit 203a521

Browse files
Saurabh Sengarliuw
authored andcommitted
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. Signed-off-by: Saurabh Sengar <[email protected]> Signed-off-by: Wei Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 14058f7 commit 203a521

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/x86/hyperv/hv_init.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* Author : K. Y. Srinivasan <[email protected]>
88
*/
99

10+
#define pr_fmt(fmt) "Hyper-V: " fmt
11+
1012
#include <linux/efi.h>
1113
#include <linux/types.h>
1214
#include <linux/bitfield.h>
@@ -191,7 +193,7 @@ void set_hv_tscchange_cb(void (*cb)(void))
191193
struct hv_tsc_emulation_control emu_ctrl = {.enabled = 1};
192194

193195
if (!hv_reenlightenment_available()) {
194-
pr_warn("Hyper-V: reenlightenment support is unavailable\n");
196+
pr_warn("reenlightenment support is unavailable\n");
195197
return;
196198
}
197199

@@ -568,7 +570,7 @@ void __init hyperv_init(void)
568570
if (cpu_feature_enabled(X86_FEATURE_IBT) &&
569571
*(u32 *)hv_hypercall_pg != gen_endbr()) {
570572
setup_clear_cpu_cap(X86_FEATURE_IBT);
571-
pr_warn("Hyper-V: Disabling IBT because of Hyper-V bug\n");
573+
pr_warn("Disabling IBT because of Hyper-V bug\n");
572574
}
573575
#endif
574576

0 commit comments

Comments
 (0)