+2009-12-10 Felix Zielcke <fzielcke@z-51.de>
+
+ * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
+ name in an error message.
+ (grub_biosdisk_rw): Likewise.
+
2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
Eliminate NTFS 4Gib barrier.
else
{
grub_free (data);
- return grub_error (GRUB_ERR_BAD_DEVICE, "cannot get C/H/S values");
+ return grub_error (GRUB_ERR_BAD_DEVICE, "%s cannot get C/H/S values", disk->name);
}
}
1024 /* cylinders */ *
256 /* heads */ *
63 /* spt */)
- return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");
+ return grub_error (GRUB_ERR_OUT_OF_RANGE, "%s out of disk", disk->name);
soff = ((grub_uint32_t) sector) % data->sectors + 1;
head = ((grub_uint32_t) sector) / data->sectors;
coff = head / data->heads;
if (coff >= data->cylinders)
- return grub_error (GRUB_ERR_OUT_OF_RANGE, "out of disk");
+ return grub_error (GRUB_ERR_OUT_OF_RANGE, "%s out of disk", disk->name);
if (grub_biosdisk_rw_standard (cmd + 0x02, data->drive,
coff, hoff, soff, size, segment))
switch (cmd)
{
case GRUB_BIOSDISK_READ:
- return grub_error (GRUB_ERR_READ_ERROR, "biosdisk read error");
+ return grub_error (GRUB_ERR_READ_ERROR, "%s read error", disk->name);
case GRUB_BIOSDISK_WRITE:
- return grub_error (GRUB_ERR_WRITE_ERROR, "biosdisk write error");
+ return grub_error (GRUB_ERR_WRITE_ERROR, "%s write error", disk->name);
}
}
}