mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] imd: fix missing error message
Date: Thu, 29 Nov 2018 09:06:03 +0100	[thread overview]
Message-ID: <20181129080603.d47oxk2tek6pbgkj@pengutronix.de> (raw)
In-Reply-To: <20181127160730.20147-1-t.scherer@eckelmann.de>

On Tue, Nov 27, 2018 at 05:07:30PM +0100, Thorsten K. Scherer wrote:
> 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>
> ---
>  common/misc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/common/misc.c b/common/misc.c
> index 665f72be7..66aba534f 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;
> -- 
> 2.19.1
> 
> 
> -- 
> Eckelmann AG
> Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
> Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
> Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
> Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
> Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
> http://www.eckelmann.de
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2018-11-29  8:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27 16:07 Thorsten K. Scherer
2018-11-29  8:06 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181129080603.d47oxk2tek6pbgkj@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=t.scherer@eckelmann.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox