diff options
author | Mark Brown <broonie@kernel.org> | 2024-04-09 21:40:32 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-05-06 13:57:20 -0600 |
commit | 6a5695119e0a8755d907a9a76b08307e41b98fec (patch) | |
tree | 973a99c6743dd84309155a5dd510a87841089cf9 /tools/testing/selftests/clone3/clone3.c | |
parent | 698eb790e016427bf3b2e55693e653222af13691 (diff) |
selftests/clone3: Correct log message for waitpid() failures
When logging an error from calling waitpid() on the child we print a
misleading error message saying that the error we report was returned by
the chilld. Fix this to say the error is from waitpid().
Applied after fixing merge conflict:
Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/clone3/clone3.c')
-rw-r--r-- | tools/testing/selftests/clone3/clone3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index 0e0e5dfa97c6..e61f07973ce5 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -95,7 +95,7 @@ static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode) getpid(), pid); if (waitpid(-1, &status, __WALL) < 0) { - ksft_print_msg("Child returned %s\n", strerror(errno)); + ksft_print_msg("waitpid() returned %s\n", strerror(errno)); return -errno; } if (!WIFEXITED(status)) { |