diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-27 15:04:21 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-11-06 09:59:01 -0500 |
commit | 76b9cbab25f832a25e51c50a221c0f1ff3632b7c (patch) | |
tree | 1d0dd562ad4047a808c350c6341b01900be722df /tools | |
parent | 6793d017a7679477402f5d30229651dba0db5ed2 (diff) | |
download | u-boot-76b9cbab25f832a25e51c50a221c0f1ff3632b7c.zip u-boot-76b9cbab25f832a25e51c50a221c0f1ff3632b7c.tar.gz u-boot-76b9cbab25f832a25e51c50a221c0f1ff3632b7c.tar.bz2 |
tools: image: fix message when fail to add verification data for config
This function is called when signing configuration nodes. Adjust
the error message.
I do not know why we do not need to show the error message in case of
ENOSPC. Remove the if-conditional that seems unnecessary.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/image-host.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/image-host.c b/tools/image-host.c index d42c1ca..2c0030b 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -626,10 +626,8 @@ static int fit_config_process_sig(const char *keydir, void *keydest, /* Write the public key into the supplied FDT file */ if (keydest) { ret = info.crypto->add_verify_data(&info, keydest); - if (ret == -ENOSPC) - return -ENOSPC; if (ret) { - printf("Failed to add verification data for '%s' signature node in '%s' image node\n", + printf("Failed to add verification data for '%s' signature node in '%s' configuration node\n", node_name, conf_name); } return ret; |