diff options
author | Mark Brown <broonie@kernel.org> | 2023-11-23 10:45:48 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-11-30 14:50:03 -0700 |
commit | e63e1354125f923f1f5a393dd63c074427382e7e (patch) | |
tree | ad657e24b30f68c7d9c4675f6deaf898a3a5de8a | |
parent | 60e76e7ac088c5146d647cc5cc3f345b54489915 (diff) | |
download | linux-e63e1354125f923f1f5a393dd63c074427382e7e.tar.gz linux-e63e1354125f923f1f5a393dd63c074427382e7e.tar.bz2 linux-e63e1354125f923f1f5a393dd63c074427382e7e.zip |
kselftest/vDSO: Fix message formatting for clock_id logging
When logging the ID of the currently tested clock vdso_test_clock() puts a
spurious newline at the start of the format string resulting in output
such as
#
clock_id: CLOCK_BOOTTIME
which is a valid but empty KTAP informational message followed by a non
conferment output line. Remove the initial newline to create a more KTAP
friendly
# clock_id: CLOCK_BOOTTIME
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r-- | tools/testing/selftests/vDSO/vdso_test_abi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vDSO/vdso_test_abi.c b/tools/testing/selftests/vDSO/vdso_test_abi.c index b304abae6e8f..d0e247cca58a 100644 --- a/tools/testing/selftests/vDSO/vdso_test_abi.c +++ b/tools/testing/selftests/vDSO/vdso_test_abi.c @@ -170,7 +170,7 @@ static void vdso_test_clock_getres(clockid_t clk_id) */ static inline void vdso_test_clock(clockid_t clock_id) { - ksft_print_msg("\nclock_id: %s\n", vdso_clock_name[clock_id]); + ksft_print_msg("clock_id: %s\n", vdso_clock_name[clock_id]); vdso_test_clock_gettime(clock_id); |