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:
parent
d2c11005c6
commit
60b6be74b9
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* util/powerpc/ieee1275/grub-mkrescue.in: New file.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue