Commit eb5b63f3699fd8068f79cf8ffe5524f98ec00ba6
Committed by
Tom Rini
1 parent
574e38618b
Exists in
smarc_8mq_lf_v2020.04
and in
12 other branches
lib: errno: sync error codes
Macro ERRNO_MSG() ignores the error number but we should still use the same constants as in include/linux/errno.h. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
lib/errno_str.c
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | static const char * const errno_message[] = { |
| 14 | 14 | ERRNO_MSG(0, "Success"), |
| 15 | 15 | ERRNO_MSG(EPERM, "Operation not permitted"), |
| 16 | - ERRNO_MSG(ENOEN, "No such file or directory"), | |
| 16 | + ERRNO_MSG(ENOENT, "No such file or directory"), | |
| 17 | 17 | ERRNO_MSG(ESRCH, "No such process"), |
| 18 | 18 | ERRNO_MSG(EINTR, "Interrupted system call"), |
| 19 | 19 | ERRNO_MSG(EIO, "I/O error"), |
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | ERRNO_MSG(ENOMEM, "Out of memory"), |
| 27 | 27 | ERRNO_MSG(EACCES, "Permission denied"), |
| 28 | 28 | ERRNO_MSG(EFAULT, "Bad address"), |
| 29 | - ERRNO_MSG(ENOTBL, "Block device required"), | |
| 29 | + ERRNO_MSG(ENOTBLK, "Block device required"), | |
| 30 | 30 | ERRNO_MSG(EBUSY, "Device or resource busy"), |
| 31 | 31 | ERRNO_MSG(EEXIST, "File exists"), |
| 32 | 32 | ERRNO_MSG(EXDEV, "Cross-device link"), |