summaryrefslogtreecommitdiff
path: root/tools/fit_image.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-03 15:40:43 (GMT)
committerTom Rini <trini@konsulko.com>2016-07-14 22:22:36 (GMT)
commit655cc69655f058e0354d5db4179c92d2ac0081ba (patch)
tree4b008f3c6c70da8976e326e94580db1c2669036f /tools/fit_image.c
parent73a9054d0f33dc4612a13200c6f3af00d2a1fcda (diff)
downloadu-boot-fsl-qoriq-655cc69655f058e0354d5db4179c92d2ac0081ba.tar.xz
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>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r--tools/fit_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c
index 94229b8..10fd6d4 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -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;
}