summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten K. Scherer <t.scherer@eckelmann.de>2018-11-27 17:07:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-11-29 09:05:49 +0100
commitecff6da0ba5030db2d0322a8d343f1fdba74808d (patch)
treea48af30129e69d1f27a1ca06600126f08381baea
parentfda189dbf829d40a6f30f7877db1a094c2886045 (diff)
downloadbarebox-ecff6da0ba5030db2d0322a8d343f1fdba74808d.tar.gz
barebox-ecff6da0ba5030db2d0322a8d343f1fdba74808d.tar.xz
imd: fix missing error message
imd -t just returns 'imd: error 61', if there is not tag for <type> reference: common/imd.c:357 if (!imd) { ... Signed-off-by: Thorsten K. Scherer <t.scherer@eckelmann.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/misc.c b/common/misc.c
index 665f72be7e..66aba534fc 100644
--- a/common/misc.c
+++ b/common/misc.c
@@ -67,11 +67,11 @@ const char *strerror(int errnum)
case ETIMEDOUT : str = "Connection timed out"; break;
case EPROBE_DEFER : str = "Requested probe deferral"; break;
case ELOOP : str = "Too many symbolic links encountered"; break;
+ case ENODATA : str = "No data available"; break;
#if 0 /* These are probably not needed */
case ENOTBLK : str = "Block device required"; break;
case EFBIG : str = "File too large"; break;
case EBADSLT : str = "Invalid slot"; break;
- case ENODATA : str = "No data available"; break;
case ETIME : str = "Timer expired"; break;
case ENONET : str = "Machine is not on the network"; break;
case EADV : str = "Advertise error"; break;