loader/i386/linux: Correct wrong initrd address for debug
The "addr" is used to request the memory with specific ranges but the real loadable address come from the relocator. Thus, print the final retrieved addresses, virtual and physical, for initrd. On the occasion migrate to PRIxGRUB_ADDR and PRIxGRUB_SIZE format specifiers. Signed-off-by: Jeremy Szu <jeremy.szu@canonical.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
34f281aa75
commit
cd96802190
@ -1123,8 +1123,8 @@ grub_cmd_initrd (grub_command_t cmd __attribute__ ((unused)),
|
||||
if (grub_initrd_load (&initrd_ctx, initrd_mem))
|
||||
goto fail;
|
||||
|
||||
grub_dprintf ("linux", "Initrd, addr=0x%x, size=0x%x\n",
|
||||
(unsigned) addr, (unsigned) size);
|
||||
grub_dprintf ("linux", "Initrd (%p) at 0x%" PRIxGRUB_ADDR ", size=0x%" PRIxGRUB_SIZE "\n",
|
||||
initrd_mem, initrd_mem_target, size);
|
||||
|
||||
linux_params.ramdisk_image = initrd_mem_target;
|
||||
linux_params.ramdisk_size = size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user