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>
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;