]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest/arm64: Use ksft_perror() to log MTE failures
authorMark Brown <broonie@kernel.org>
Tue, 29 Oct 2024 12:34:21 +0000 (12:34 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 1 Nov 2024 15:47:17 +0000 (15:47 +0000)
commit17a2409783f141c9fcd03b140d17bbb75e98c630
tree3329082c1c37d4e3437059bfc3f9643b69345c50
parentdca93d29845dfed60910ba13dbfb6ae6a0e19f6d
kselftest/arm64: Use ksft_perror() to log MTE failures

The logging in the allocation helpers variously uses ksft_print_msg() with
very intermittent logging of errno and perror() (which won't produce KTAP
conformant output) when logging the result of API calls that set errno.
Standardise on using the ksft_perror() helper in these cases so that more
information is available should the tests fail.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Link: https://lore.kernel.org/r/20241029-arm64-mte-test-logging-v1-1-a128e732e36e@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/mte_common_util.c