OSDN Git Service

selftests: openat2: Print also errno in failure messages
authorCristian Marussi <cristian.marussi@arm.com>
Wed, 26 Jan 2022 10:27:21 +0000 (10:27 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 27 Jan 2022 23:30:49 +0000 (16:30 -0700)
commite051cdf655fa016692008a446a060eff06222bb5
tree9c815d3d381c2ea7ed1092ee0f583fa61c9602ea
parentb9199181a9ef8252e47e207be8c23e1f50662620
selftests: openat2: Print also errno in failure messages

In E_func() macro, on error, print also errno in order to aid debugging.

Cc: Aleksa Sarai <cyphar@cyphar.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/openat2/helpers.h