* grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.

This commit is contained in:
Vladimir Serbinenko 2013-12-15 14:35:18 +01:00
parent 48ba5c0c86
commit 24ca71c93b
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/elfXX.c: Use grub_addr_t rather than long when

View file

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