[PATCH 4/5] add string for -ETIMEDOUT
Sascha Hauer
s.hauer at pengutronix.de
Sun Feb 19 12:58:07 EST 2012
-ETIMEDOUT is a common error value, so print the string rather
than just the number.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
common/misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/misc.c b/common/misc.c
index 7edf536..a0059c1 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;
--
1.7.9
More information about the barebox
mailing list