diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 15:23:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 18:51:03 +0100 |
commit | 16babe2c7f7c21a7a007486c87021bc4dce519a8 (patch) | |
tree | 0c142f4c357d2505301dffbadf7e91427efd31d3 /common/misc.c | |
parent | 31078e083933c3873bfebc1c9f59c019061b85d9 (diff) | |
download | barebox-16babe2c7f7c21a7a007486c87021bc4dce519a8.tar.gz barebox-16babe2c7f7c21a7a007486c87021bc4dce519a8.tar.xz |
add string for -ETIMEDOUT
-ETIMEDOUT is a common error value, so print the string rather
than just the number.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/misc.c')
-rw-r--r-- | common/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/misc.c b/common/misc.c index 7edf536bab..a0059c1b79 100644 --- a/common/misc.c +++ b/common/misc.c @@ -60,6 +60,7 @@ const char *strerror(int errnum) case EINTR : str = "Interrupted system call"; break; case ENETUNREACH : str = "Network is unreachable"; break; case ENETDOWN : str = "Network is down"; break; + case ETIMEDOUT : str = "Connection timed out"; break; #if 0 /* These are probably not needed */ case ENOTBLK : str = "Block device required"; break; case EFBIG : str = "File too large"; break; @@ -87,7 +88,6 @@ const char *strerror(int errnum) case ECONNABORTED : str = "Software caused connection abort"; break; case ECONNRESET : str = "Connection reset by peer"; break; case ENOBUFS : str = "No buffer space available"; break; - case ETIMEDOUT : str = "Connection timed out"; break; case ECONNREFUSED : str = "Connection refused"; break; case EHOSTDOWN : str = "Host is down"; break; case EALREADY : str = "Operation already in progress"; break; |