Skip to content
Snippets Groups Projects
Commit c6ac13bd authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

sandbox: image: Adjust FIT image printing to work with sandbox


Use map_sysmem() to convert from address to pointer, so that sandbox can
print FIT information without crashing.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 4651800d
No related branches found
No related tags found
No related merge requests found
...@@ -351,10 +351,13 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) ...@@ -351,10 +351,13 @@ void fit_image_print(const void *fit, int image_noffset, const char *p)
#ifndef USE_HOSTCC #ifndef USE_HOSTCC
printf("%s Data Start: ", p); printf("%s Data Start: ", p);
if (ret) if (ret) {
printf("unavailable\n"); printf("unavailable\n");
else } else {
printf("0x%08lx\n", (ulong)data); void *vdata = (void *)data;
printf("0x%08lx\n", (ulong)map_to_sysmem(vdata));
}
#endif #endif
printf("%s Data Size: ", p); printf("%s Data Size: ", p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment