mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
image-host: fix 'unknown error' error message
Fix error message like this: Can't add verification data for node 'fdt-1' (<unknown error>) We get unknown error because we decode error as fdt error but actually it is system error. Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7c4e5223cb
commit
9e81f13dbb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue