diff options
author | 2023-09-28 16:38:11 +0200 | |
---|---|---|
committer | 2023-10-05 14:49:58 -0600 | |
commit | 907f33028871fa7c9a3db1efd467b78ef82cce20 (patch) | |
tree | 6a57057789c667a7724ecfc3621840825ce0329e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests: static_keys: fix test name in messages (diff) | |
download | wireguard-linux-907f33028871fa7c9a3db1efd467b78ef82cce20.tar.xz wireguard-linux-907f33028871fa7c9a3db1efd467b78ef82cce20.zip |
kselftest: Add a ksft_perror() helper
The standard library perror() function provides a convenient way to print
an error message based on the current errno but this doesn't play nicely
with KTAP output. Provide a helper which does an equivalent thing in a KTAP
compatible format.
nolibc doesn't have a strerror() and adding the table of strings required
doesn't seem like a good fit for what it's trying to do so when we're using
that only print the errno.
Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions