tools: Add an error code when fit_handle_file() fails

The error code may provide useful information for debugging. Add it to the
error string.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Teddy Reed <teddy.reed@gmail.com>
This commit is contained in:
Simon Glass 2016-07-03 09:40:43 -06:00 committed by Tom Rini
parent 73a9054d0f
commit 655cc69655

View file

@ -651,8 +651,8 @@ static int fit_handle_file(struct image_tool_params *params)
}
if (ret) {
fprintf(stderr, "%s Can't add hashes to FIT blob\n",
params->cmdname);
fprintf(stderr, "%s Can't add hashes to FIT blob: %d\n",
params->cmdname, ret);
goto err_system;
}