Commit e63e1354 authored by Mark Brown's avatar Mark Brown Committed by Shuah Khan
Browse files

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: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent 60e76e7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);