selftests: kselftest_harness: separate diagnostic message with # in ksft_test_result_...
authorJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 00:59:16 +0000 (16:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 10:30:29 +0000 (10:30 +0000)
commit42ab727eb95fcff83e7a67fcdbf467bbcd53451e
tree8581d555cef159c2971a3cba46db7d2c9fc6f4af
parent732e2035280bf499a4b002677e2a1845f557d403
selftests: kselftest_harness: separate diagnostic message with # in ksft_test_result_code()

According to the spec we should always print a # if we add
a diagnostic message. Having the caller pass in the new line
as part of diagnostic message makes handling this a bit
counter-intuitive, so append the new line in the helper.

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/kselftest.h
tools/testing/selftests/kselftest_harness.h