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

* disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
        grub_dprintf() calls.
        * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
        error message.
This commit is contained in:
robertmh 2008-02-08 12:22:51 +00:00
parent 1ec8425d1d
commit 554f018744
3 changed files with 17 additions and 2 deletions

View file

@ -367,8 +367,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)
{
grub_error_push ();
grub_dprintf ("disk", "Read out of range: sector 0x%llx.\n",
(unsigned long long) sector);
grub_dprintf ("disk", "Read out of range: sector 0x%llx (%s).\n",
(unsigned long long) sector, grub_errmsg);
grub_error_pop ();
return grub_errno;
}