[PATCH][next] KVM: x86: Remove space before \n newline

Colin Ian King posted 1 patch 2 months, 2 weeks ago
arch/x86/kvm/vmx/vmx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH][next] KVM: x86: Remove space before \n newline
Posted by Colin Ian King 2 months, 2 weeks ago
There is a extraneous space before a newline in a pr_debug_ratelimited
message. Remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 arch/x86/kvm/vmx/vmx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index aa157fe5b7b3..e5358277d059 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -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)
-- 
2.50.0
Re: [PATCH][next] KVM: x86: Remove space before \n newline
Posted by Sean Christopherson 1 month, 2 weeks ago
On Mon, Jul 21, 2025, Colin Ian King wrote:
> There is a extraneous space before a newline in a pr_debug_ratelimited
> message. Remove it.
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
>  arch/x86/kvm/vmx/vmx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
> index aa157fe5b7b3..e5358277d059 100644
> --- a/arch/x86/kvm/vmx/vmx.c
> +++ b/arch/x86/kvm/vmx/vmx.c
> @@ -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.

>  		vmcs_write32(GUEST_TR_AR_BYTES,
>  			     (guest_tr_ar & ~VMX_AR_TYPE_MASK)
> -- 
> 2.50.0
>