diff options
author | Mark Brown <broonie@kernel.org> | 2023-09-28 16:38:11 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-10-05 14:49:58 -0600 |
commit | 907f33028871fa7c9a3db1efd467b78ef82cce20 (patch) | |
tree | 6a57057789c667a7724ecfc3621840825ce0329e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1c71a121c7ff41bf6605b2604408d109eab047ae (diff) |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions