diff options
author | Simon Glass | 2016-07-03 09:40:43 -0600 |
---|---|---|
committer | Tom Rini | 2016-07-14 18:22:36 -0400 |
commit | 655cc69655f058e0354d5db4179c92d2ac0081ba (patch) | |
tree | 4b008f3c6c70da8976e326e94580db1c2669036f /tools/fit_image.c | |
parent | 73a9054d0f33dc4612a13200c6f3af00d2a1fcda (diff) |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 94229b809d8..10fd6d49293 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; } |