diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-03 15:40:43 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-14 22:22:36 (GMT) |
commit | 655cc69655f058e0354d5db4179c92d2ac0081ba (patch) | |
tree | 4b008f3c6c70da8976e326e94580db1c2669036f /tools | |
parent | 73a9054d0f33dc4612a13200c6f3af00d2a1fcda (diff) | |
download | u-boot-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')
-rw-r--r-- | tools/fit_image.c | 4 |
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; } |