efi_loader: Fix display of addresses in log
The allocate/free-pages functions return an address, so there is no need
to convert it. Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: c824a96d76 ("efi_loader: Use the log with memory-related...")
This commit is contained in:
@@ -340,8 +340,7 @@ void show_rec(int seq, struct efil_rec_hdr *rec_hdr)
|
||||
show_ulong("pgs", (ulong)rec->pages);
|
||||
show_addr("mem", (ulong)rec->memory);
|
||||
if (rec_hdr->ended) {
|
||||
show_addr("*mem",
|
||||
(ulong)map_to_sysmem((void *)rec->e_memory));
|
||||
show_addr("*mem", rec->e_memory);
|
||||
show_ret(rec_hdr->e_ret);
|
||||
}
|
||||
break;
|
||||
@@ -349,7 +348,7 @@ void show_rec(int seq, struct efil_rec_hdr *rec_hdr)
|
||||
case EFILT_FREE_PAGES: {
|
||||
struct efil_free_pages *rec = start;
|
||||
|
||||
show_addr("mem", map_to_sysmem((void *)rec->memory));
|
||||
show_addr("mem", rec->memory);
|
||||
show_ulong("pag", (ulong)rec->pages);
|
||||
if (rec_hdr->ended)
|
||||
show_ret(rec_hdr->e_ret);
|
||||
|
||||
Reference in New Issue
Block a user