summaryrefslogtreecommitdiffstats
path: root/common/image-fit.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 589f53dbb5..7bf82d33cf 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -351,10 +351,13 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
#ifndef USE_HOSTCC
printf("%s Data Start: ", p);
- if (ret)
+ if (ret) {
printf("unavailable\n");
- else
- printf("0x%08lx\n", (ulong)data);
+ } else {
+ void *vdata = (void *)data;
+
+ printf("0x%08lx\n", (ulong)map_to_sysmem(vdata));
+ }
#endif
printf("%s Data Size: ", p);
OpenPOWER on IntegriCloud