From 675075492215870f58eeb7096de648fa38250258 Mon Sep 17 00:00:00 2001 From: hollisb Date: Fri, 27 Oct 2006 18:24:14 +0000 Subject: [PATCH] 2006-10-27 Hollis Blanchard * kern/disk.c (grub_disk_read): Correct debug printf formatting. --- ChangeLog | 4 ++++ kern/disk.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 566a54d78..cf08be842 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-10-27 Hollis Blanchard + + * kern/disk.c (grub_disk_read): Correct debug printf formatting. + 2006-10-27 Hollis Blanchard * kern/disk.c (grub_disk_open): Print debug messages when opening a diff --git a/kern/disk.c b/kern/disk.c index 7f8c44020..77f1dbaae 100644 --- a/kern/disk.c +++ b/kern/disk.c @@ -363,7 +363,8 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector, if (grub_disk_check_range (disk, §or, &offset, size) != GRUB_ERR_NONE) { 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 (); return grub_errno; }