2006-10-27 Hollis Blanchard <hollis@penguinppc.org>

* kern/disk.c (grub_disk_read): Correct debug printf formatting.
This commit is contained in:
hollisb 2006-10-27 18:24:14 +00:00
parent 69203a9992
commit 6750754922
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
* kern/disk.c (grub_disk_read): Correct debug printf formatting.
2006-10-27 Hollis Blanchard <hollis@penguinppc.org> 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
* kern/disk.c (grub_disk_open): Print debug messages when opening a * kern/disk.c (grub_disk_open): Print debug messages when opening a

View file

@ -363,7 +363,8 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector,
if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE) if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE)
{ {
grub_error_push (); grub_error_push ();
grub_dprintf ("disk", "Read out of range: sector 0x%lx.\n", sector); grub_dprintf ("disk", "Read out of range: sector 0x%llx.\n",
(unsigned long long) sector);
grub_error_pop (); grub_error_pop ();
return grub_errno; return grub_errno;
} }