]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: selftests: riscv: Remove redundant newlines
authorAndrew Jones <ajones@ventanamicro.com>
Wed, 6 Dec 2023 17:02:45 +0000 (18:02 +0100)
committerSean Christopherson <seanjc@google.com>
Mon, 29 Jan 2024 16:39:16 +0000 (08:39 -0800)
TEST_* functions append their own newline. Remove newlines from
TEST_* callsites to avoid extra newlines in output.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20231206170241.82801-10-ajones@ventanamicro.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/riscv/processor.c
tools/testing/selftests/kvm/riscv/get-reg-list.c

index 7ca736fb4194046072bf69b3210f0fefd8ce0834..2bb33a8ac03c25f622ec6dc21430529b8b128a9d 100644 (file)
@@ -327,7 +327,7 @@ void vcpu_args_set(struct kvm_vcpu *vcpu, unsigned int num, ...)
        int i;
 
        TEST_ASSERT(num >= 1 && num <= 8, "Unsupported number of args,\n"
-                   "  num: %u\n", num);
+                   "  num: %u", num);
 
        va_start(ap, num);
 
index 6652108816db462160230a17c4da32fa078526dc..50bb9bb73a7b6f9691e1599aa1bb6d3ce1a6ac2a 100644 (file)
@@ -150,7 +150,7 @@ void finalize_vcpu(struct kvm_vcpu *vcpu, struct vcpu_reg_list *c)
 
                /* Double check whether the desired extension was enabled */
                __TEST_REQUIRE(vcpu_has_ext(vcpu, feature),
-                              "%s not available, skipping tests\n", s->name);
+                              "%s not available, skipping tests", s->name);
        }
 }