From 24ca71c93b7bbc8f8d83b51b4be7280e3fcd71af Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 15 Dec 2013 14:35:18 +0100 Subject: [PATCH] * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers. --- ChangeLog | 4 ++++ grub-core/loader/i386/linux.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8bc99c121..94cd76a4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-12-15 Vladimir Serbinenko + + * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers. + 2013-12-15 Vladimir Serbinenko * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c index a37eecf04..fa7ecc8c8 100644 --- a/grub-core/loader/i386/linux.c +++ b/grub-core/loader/i386/linux.c @@ -249,8 +249,8 @@ allocate_pages (grub_size_t prot_size, grub_size_t *align, prot_mode_target = get_physical_target_address (ch); } - grub_dprintf ("linux", "prot_mode_mem = %lx, prot_mode_target = %lx, prot_size = %x\n", - (unsigned long) prot_mode_mem, (unsigned long) prot_mode_target, + grub_dprintf ("linux", "prot_mode_mem = %p, prot_mode_target = %lx, prot_size = %x\n", + prot_mode_mem, (unsigned long) prot_mode_target, (unsigned) prot_size); return GRUB_ERR_NONE; @@ -593,8 +593,8 @@ grub_linux_boot (void) } efi_mmap_buf = (grub_uint8_t *) real_mode_mem + ctx.real_size; - grub_dprintf ("linux", "real_mode_mem = %lx\n", - (unsigned long) real_mode_mem); + grub_dprintf ("linux", "real_mode_mem = %p\n", + real_mode_mem); ctx.params = real_mode_mem;