Skip to contentSkip to conversation

KVM: x86: Remove space before \n newline

PATCH In review Colin Ian King 2 participants 2 messages Jul 21, 2025 – Aug 19, 2025

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

PATCH 1/1 KVM: x86: Remove space before \n newline

There is a extraneous space before a newline in a pr_debug_ratelimited message. Remove it.

---
 arch/x86/kvm/vmx/vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/vmx/vmx.c +1 -1
index aa157fe5b7b3..e5358277d059 100644
@@ -3142,7 +3142,7 @@ static void enter_lmode(struct kvm_vcpu *vcpu)
 
 	guest_tr_ar = vmcs_read32(GUEST_TR_AR_BYTES);
 	if ((guest_tr_ar & VMX_AR_TYPE_MASK) != VMX_AR_TYPE_BUSY_64_TSS) {
-		pr_debug_ratelimited("%s: tss fixup for long mode. \n",
+		pr_debug_ratelimited("%s: tss fixup for long mode.\n",
 				     __func__);
 		vmcs_write32(GUEST_TR_AR_BYTES,
 			     (guest_tr_ar & ~VMX_AR_TYPE_MASK)
Signature · 1 line
2.50.0
#1 lore raw
Quoted 13 lines · Colin Ian King

There is a extraneous space before a newline in a pr_debug_ratelimited message. Remove it.

---
 arch/x86/kvm/vmx/vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/vmx/vmx.c +0 -0
index aa157fe5b7b3..e5358277d059 100644

arch/x86/kvm/vmx/vmx.c static void enter_lmode(struct kvm_vcpu *vcpu) · line 3146

Quoted 6 lines
arch/x86/kvm/vmx/vmx.c +1 -1
@@ -3142,7 +3142,7 @@ static void enter_lmode(struct kvm_vcpu *vcpu)
 
 	guest_tr_ar = vmcs_read32(GUEST_TR_AR_BYTES);
 	if ((guest_tr_ar & VMX_AR_TYPE_MASK) != VMX_AR_TYPE_BUSY_64_TSS) {
-		pr_debug_ratelimited("%s: tss fixup for long mode. \n",
+		pr_debug_ratelimited("%s: tss fixup for long mode.\n",
 				     __func__);

I'm inclined to simply delete the pr_debug. I can't imagine it's at all useful for anyone/anything.

Quoted 5 lines
arch/x86/kvm/vmx/vmx.c +0 -0
 		vmcs_write32(GUEST_TR_AR_BYTES,
 			     (guest_tr_ar & ~VMX_AR_TYPE_MASK)
Signature · 1 line
2.50.0