aboutsummaryrefslogtreecommitdiff
path: root/tools/fit_image.c
diff options
context:
space:
mode:
authorSimon Glass2022-01-09 20:13:38 -0700
committerSimon Glass2022-01-25 12:36:10 -0700
commit206117afd137c88f0b0974088a9008bdf123eeb8 (patch)
treea507fdde4930941d0638361c0bc77ffdc3f1b113 /tools/fit_image.c
parent1e18a69394658ab56ef1c310d5352d7814c0017e (diff)
mkimage: Show the external-offset error
This is a debug message at present, which is not very helpful. Print out the error so that action can be taken. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r--tools/fit_image.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c
index 8df95c40d20..9ac525623bc 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -525,8 +525,9 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
/* Check if an offset for the external data was set. */
if (params->external_offset > 0) {
if (params->external_offset < new_size) {
- debug("External offset %x overlaps FIT length %x\n",
- params->external_offset, new_size);
+ fprintf(stderr,
+ "External offset %x overlaps FIT length %x\n",
+ params->external_offset, new_size);
ret = -EINVAL;
goto err;
}