Skip to content

Commit d736d4f

Browse files
Dev Jainwilldeacon
authored andcommitted
kselftest/arm64: Fix build warnings for ptrace
A "%s" is missing in ksft_exit_fail_msg(); instead, use the newly introduced ksft_exit_fail_perror(). Signed-off-by: Dev Jain <dev.jain@arm.com> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20240830052911.4040970-1-dev.jain@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 6f03153 commit d736d4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tools/testing/selftests/arm64/abi

tools/testing/selftests/arm64/abi/ptrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ static void test_hw_debug(pid_t child, int type, const char *type_name)
163163
static int do_child(void)
164164
{
165165
if (ptrace(PTRACE_TRACEME, -1, NULL, NULL))
166-
ksft_exit_fail_msg("PTRACE_TRACEME", strerror(errno));
166+
ksft_exit_fail_perror("PTRACE_TRACEME");
167167

168168
if (raise(SIGSTOP))
169-
ksft_exit_fail_msg("raise(SIGSTOP)", strerror(errno));
169+
ksft_exit_fail_perror("raise(SIGSTOP)");
170170

171171
return EXIT_SUCCESS;
172172
}

0 commit comments

Comments
 (0)