X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=bootparams.c;h=da3d6642ae5e5603fa325dcc70cbba7a51704ee6;hb=496ea4aee6c10fb6fa4d799df0df7ae34b4deb0b;hp=8859fcc48c1a0864e3ee25210629c56bf3929598;hpb=8e0034665aa8483b27191c723608575536d01303;p=debian%2Felilo diff --git a/bootparams.c b/bootparams.c index 8859fcc..da3d664 100644 --- a/bootparams.c +++ b/bootparams.c @@ -78,12 +78,12 @@ create_boot_params(CHAR16 *args, memdesc_t *initrd, memdesc_t *vmcode, UINTN *co return 0; } - VERB_PRT(3, Print(L"boot params @ 0x%lx\n", bp)); + VERB_PRT(3, Print(L"boot params @ " PTR_FMT "\n", bp)); /* XXX: need to fix this for 3.5 */ #ifdef CONFIG_ia64 cp = ((CHAR8 *)bp) + BOOT_PARAM_MEMSIZE - cmdline_size; -#elif defined CONFIG_ia32 +#elif defined CONFIG_ia32 || CONFIG_x86_64 cp = ((CHAR8 *)bp) + BOOT_PARAM_MEMSIZE - 2048; #endif