diff options
author | Ziqi Zhao <astrajoan@yahoo.com> | 2023-05-23 23:22:07 +0000 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-06-12 16:39:11 -0600 |
commit | bcda4c863efdd038c4f8ade63ff435ed663cc286 (patch) | |
tree | e8f582bdf3753021ca1141a92eb7e27a30e3ab91 /tools/testing/selftests/pidfd/pidfd.h | |
parent | f6a01213e3f812b645cd1079167bf47fc45bb0c8 (diff) | |
download | linux-stable-bcda4c863efdd038c4f8ade63ff435ed663cc286.tar.gz linux-stable-bcda4c863efdd038c4f8ade63ff435ed663cc286.tar.bz2 linux-stable-bcda4c863efdd038c4f8ade63ff435ed663cc286.zip |
selftest: pidfd: Omit long and repeating outputs
An output message:
> # # waitpid WEXITSTATUS=0
will be printed for 30,000+ times in the `pidfd_test` selftest, which
does not seem ideal. This patch removes the print logic in the
`wait_for_pid` function, so each call to this function does not output
a line by default. Any existing call sites where the extra line might
be beneficial have been modified to include extra print statements
outside of the function calls.
Signed-off-by: Ziqi Zhao <astrajoan@yahoo.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/pidfd/pidfd.h')
-rw-r--r-- | tools/testing/selftests/pidfd/pidfd.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/pidfd.h b/tools/testing/selftests/pidfd/pidfd.h index 6922d6417e1c..88d6830ee004 100644 --- a/tools/testing/selftests/pidfd/pidfd.h +++ b/tools/testing/selftests/pidfd/pidfd.h @@ -90,7 +90,6 @@ again: } ret = WEXITSTATUS(status); - ksft_print_msg("waitpid WEXITSTATUS=%d\n", ret); return ret; } |