[U-Boot] [RFC PATCH 19/22] sandbox: image: Adjust FIT image printing to work with sandbox
Simon Glass
sjg at chromium.org
Thu Jan 10 15:58:22 CET 2013
Use map_sysmem() to convert from address to pointer, so that sandbox can
print FIT information without crashing.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
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);
--
1.7.7.3
More information about the U-Boot
mailing list