From: Simon Glass <sjg@chromium.org>
Provide return values from a few functions to make it easier to track
the flow of execution in a few places.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
boot/image-fit.c | 4 ++++
1 file changed, 4 insertions(+)
@@ -2467,10 +2467,12 @@ static int handle_load_op(const void *fit, int noffset, const char *prop_name,
prop_name, data, load);
} else {
load = data; /* No load address specified */
+ log_debug("No load\n");
}
ret = decomp_image(fit, noffset, prop_name, buf, size, image_type,
load_op, bootstage_id, data, load, load_end);
+ log_debug("Decomp ret %d\n", ret);
if (ret)
return ret;
@@ -2517,6 +2519,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
ret = handle_load_op(fit, noffset, prop_name, buf, len,
image_type, load_op, bootstage_id, &load);
+ log_debug("handle_load_op() returned %d\n", ret);
if (ret)
return ret;
@@ -2527,6 +2530,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
}
/* note that fit_uname will always be NULL if noffset == -ENOPKG */
+ log_debug("noffset %d\n", noffset);
if (noffset >= 0 || noffset == -ENOPKG) {
if (fit_unamep)
*fit_unamep = (char *)fit_uname;