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 <[email protected]> Reviewed-by: Shuah Khan <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 6f03153 commit d736d4f

File tree

1 file changed

+2
-2
lines changed
  • tools/testing/selftests/arm64/abi

1 file changed

+2
-2
lines changed

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)