diff options
| author | Andre Przywara <[email protected]> | 2021-03-19 16:53:34 +0000 |
|---|---|---|
| committer | Catalin Marinas <[email protected]> | 2021-03-24 15:43:20 +0000 |
| commit | 75347add03e0fa60ecf2f79e41ec2152b8504593 (patch) | |
| tree | 986b06915f8119b666e4397465e1092e38957377 /lib/dynamic_debug.c | |
| parent | kselftest/arm64: mte: Fix clang warning (diff) | |
| download | kernel-75347add03e0fa60ecf2f79e41ec2152b8504593.tar.gz kernel-75347add03e0fa60ecf2f79e41ec2152b8504593.zip | |
kselftest/arm64: mte: Report filename on failing temp file creation
The MTE selftests create temporary files in /dev/shm, for later mmap-ing
them. When there is no tmpfs mounted on /dev/shm, or /dev/shm does not
exist in the first place (on minimal filesystems), the error message is
not giving good hints:
# FAIL: Unable to open temporary file
# FAIL: memory allocation
not ok 17 Check initial tags with private mapping, ...
Add a perror() call, that gives both the filename and the actual error
reason, so that users get a chance of correcting that.
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
