mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4651800d51
commit
c6ac13bdea
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue