From: Alexander Kochetkov Date: Mon, 16 Sep 2024 08:24:45 +0000 (+0300) Subject: image-host: fix 'unknown error' error message X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=9e81f13dbb41843abb25e6c4b20961f092630f13;p=u-boot.git image-host: fix 'unknown error' error message Fix error message like this: Can't add verification data for node 'fdt-1' () We get unknown error because we decode error as fdt error but actually it is system error. Signed-off-by: Alexander Kochetkov Reviewed-by: Simon Glass --- diff --git a/tools/image-host.c b/tools/image-host.c index 49ce7436bb..5e01b853c5 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -1333,7 +1333,7 @@ int fit_add_verification_data(const char *keydir, const char *keyfile, if (ret) { fprintf(stderr, "Can't add verification data for node '%s' (%s)\n", fdt_get_name(fit, noffset, NULL), - fdt_strerror(ret)); + strerror(-ret)); return ret; } }