From 60b6be74b99706f8a8ab817e38ed978a0f415df8 Mon Sep 17 00:00:00 2001 From: robertmh Date: Fri, 1 Feb 2008 00:50:19 +0000 Subject: [PATCH] 2008-02-01 Robert Millan * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf() call at beginning of function. --- ChangeLog | 5 +++++ kern/disk.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2ab4f285e..96122216f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-02-01 Robert Millan + + * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf() + call at beginning of function. + 2008-01-31 Pavel Roskin * util/powerpc/ieee1275/grub-mkrescue.in: New file. diff --git a/kern/disk.c b/kern/disk.c index 08389b9d2..afbdbb05d 100644 --- a/kern/disk.c +++ b/kern/disk.c @@ -360,6 +360,8 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector, { char *tmp_buf; unsigned real_offset; + + grub_dprintf ("disk", "Reading `%s'...\n", disk->name); /* First of all, check if the region is within the disk. */ if (grub_disk_check_range (disk, §or, &offset, size) != GRUB_ERR_NONE) @@ -498,6 +500,8 @@ grub_disk_write (grub_disk_t disk, grub_disk_addr_t sector, { unsigned real_offset; + grub_dprintf ("disk", "Writing `%s'...\n", disk->name); + if (grub_disk_check_range (disk, §or, &offset, size) != GRUB_ERR_NONE) return -1;