]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
selftests/bpf: Add a missing newline to the "bad arch spec" message
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 21 Aug 2025 11:25:56 +0000 (13:25 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Aug 2025 23:51:52 +0000 (16:51 -0700)
Fix error messages like this one:

  parse_test_spec:FAIL:569 bad arch spec: 's390x'process_subtest:FAIL:1153 Can't parse test spec for program 'may_goto_simple'

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250821113339.292434-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_loader.c

index 78423cf89e01bb90e2c780ce68657465507996c7..e1987d1959fd89264e3ff2fbeff87012a9814d59 100644 (file)
@@ -566,7 +566,7 @@ static int parse_test_spec(struct test_loader *tester,
                        } else if (strcmp(val, "RISCV64") == 0) {
                                arch = ARCH_RISCV64;
                        } else {
-                               PRINT_FAIL("bad arch spec: '%s'", val);
+                               PRINT_FAIL("bad arch spec: '%s'\n", val);
                                err = -EINVAL;
                                goto cleanup;
                        }