From: Simon Glass Date: Sun, 3 Jul 2016 15:40:43 +0000 (-0600) Subject: tools: Add an error code when fit_handle_file() fails X-Git-Tag: v2016.09-rc1~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=655cc69655f058e0354d5db4179c92d2ac0081ba;p=u-boot 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 Reviewed-by: Teddy Reed --- diff --git a/tools/fit_image.c b/tools/fit_image.c index 94229b809d..10fd6d4929 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; }