diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-10-06 14:22:21 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-10-31 14:22:53 +0300 |
commit | eb5b63f3699fd8068f79cf8ffe5524f98ec00ba6 (patch) | |
tree | 9292b3a7d6999b547fb0ed1d53f3d22105b65fc9 | |
parent | 574e38618b1de30311e17186759486f217cda39a (diff) | |
download | u-boot-eb5b63f3699fd8068f79cf8ffe5524f98ec00ba6.tar.xz |
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>
-rw-r--r-- | lib/errno_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/errno_str.c b/lib/errno_str.c index bb8f9fbeb3..2e5f4a887d 100644 --- a/lib/errno_str.c +++ b/lib/errno_str.c @@ -13,7 +13,7 @@ static const char * const errno_message[] = { ERRNO_MSG(0, "Success"), ERRNO_MSG(EPERM, "Operation not permitted"), - ERRNO_MSG(ENOEN, "No such file or directory"), + ERRNO_MSG(ENOENT, "No such file or directory"), ERRNO_MSG(ESRCH, "No such process"), ERRNO_MSG(EINTR, "Interrupted system call"), ERRNO_MSG(EIO, "I/O error"), @@ -26,7 +26,7 @@ static const char * const errno_message[] = { ERRNO_MSG(ENOMEM, "Out of memory"), ERRNO_MSG(EACCES, "Permission denied"), ERRNO_MSG(EFAULT, "Bad address"), - ERRNO_MSG(ENOTBL, "Block device required"), + ERRNO_MSG(ENOTBLK, "Block device required"), ERRNO_MSG(EBUSY, "Device or resource busy"), ERRNO_MSG(EEXIST, "File exists"), ERRNO_MSG(EXDEV, "Cross-device link"), |