mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
6793d017a7
commit
76b9cbab25
1 changed files with 1 additions and 3 deletions
|
@ -626,10 +626,8 @@ static int fit_config_process_sig(const char *keydir, void *keydest,
|
||||||
/* Write the public key into the supplied FDT file */
|
/* Write the public key into the supplied FDT file */
|
||||||
if (keydest) {
|
if (keydest) {
|
||||||
ret = info.crypto->add_verify_data(&info, keydest);
|
ret = info.crypto->add_verify_data(&info, keydest);
|
||||||
if (ret == -ENOSPC)
|
|
||||||
return -ENOSPC;
|
|
||||||
if (ret) {
|
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);
|
node_name, conf_name);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue