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>
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 @@
}
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;
}