]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: Add an error code when fit_handle_file() fails
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jul 2016 15:40:43 +0000 (09:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:36 +0000 (18:22 -0400)
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>
tools/fit_image.c

index 94229b809d8cb88a606cfaab37ae396b03ff2847..10fd6d4929374728732efd63e327cab36275766e 100644 (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;
        }