2008-02-01 Robert Millan <rmh@aybabtu.com>

* kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
        call at beginning of function.
This commit is contained in:
robertmh 2008-02-01 00:50:19 +00:00
parent d2c11005c6
commit 60b6be74b9
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-01 Robert Millan <rmh@aybabtu.com>
* kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
call at beginning of function.
2008-01-31 Pavel Roskin <proski@gnu.org> 2008-01-31 Pavel Roskin <proski@gnu.org>
* util/powerpc/ieee1275/grub-mkrescue.in: New file. * util/powerpc/ieee1275/grub-mkrescue.in: New file.

View file

@ -360,6 +360,8 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector,
{ {
char *tmp_buf; char *tmp_buf;
unsigned real_offset; unsigned real_offset;
grub_dprintf ("disk", "Reading `%s'...\n", disk->name);
/* First of all, check if the region is within the disk. */ /* First of all, check if the region is within the disk. */
if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE) if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE)
@ -498,6 +500,8 @@ grub_disk_write (grub_disk_t disk, grub_disk_addr_t sector,
{ {
unsigned real_offset; unsigned real_offset;
grub_dprintf ("disk", "Writing `%s'...\n", disk->name);
if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE) if (grub_disk_check_range (disk, &sector, &offset, size) != GRUB_ERR_NONE)
return -1; return -1;