From patchwork Thu Jan 10 14:58:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot, RFC, 19/22] sandbox: image: Adjust FIT image printing to work with sandbox Date: Thu, 10 Jan 2013 04:58:22 -0000 From: Simon Glass X-Patchwork-Id: 211045 Message-Id: <1357829905-6579-20-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Joe Hershberger , Tom Rini , Vadim Bendebury Use map_sysmem() to convert from address to pointer, so that sandbox can print FIT information without crashing. Signed-off-by: Simon Glass --- common/image-fit.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/image-fit.c b/common/image-fit.c index ef21112..9f3ece2 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -373,7 +373,7 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) if (ret) printf("unavailable\n"); else - printf("0x%08lx\n", (ulong)data); + printf("0x%08lx\n", (ulong)map_to_sysmem((char *)data)); #endif printf("%s Data Size: ", p);