kselftest/vDSO: Use ksft_print_msg() rather than printf in vdso_test_abi
authorMark Brown <broonie@kernel.org>
Thu, 23 Nov 2023 10:45:49 +0000 (10:45 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 30 Nov 2023 21:50:09 +0000 (14:50 -0700)
There are a couple of raw printf() calls in vdso_test_abi which result in
non KTAP conforment output such as

   [vDSO kselftest] VDSO_VERSION: LINUX_2.6

Convert them to use ksft_print_msg() so that they don't cause confusion for
parsers.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/vdso_test_abi.c

index d0e247cca58aabd3af31e4ae056358cf1100f291..96d32fd65b42b71fcf6845fdf541f8a0abf1f9b3 100644 (file)
@@ -187,14 +187,14 @@ int main(int argc, char **argv)
        ksft_set_plan(VDSO_TEST_PLAN);
 
        if (!sysinfo_ehdr) {
-               printf("AT_SYSINFO_EHDR is not present!\n");
+               ksft_print_msg("AT_SYSINFO_EHDR is not present!\n");
                return KSFT_SKIP;
        }
 
        version = versions[VDSO_VERSION];
        name = (const char **)&names[VDSO_NAMES];
 
-       printf("[vDSO kselftest] VDSO_VERSION: %s\n", version);
+       ksft_print_msg("[vDSO kselftest] VDSO_VERSION: %s\n", version);
 
        vdso_init_from_sysinfo_ehdr(getauxval(AT_SYSINFO_EHDR));