* grub-core/disk/raid.c (insert_array): Display RAID name in duplicate

members errors.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-10 17:28:29 +01:00
parent 1f060f399a
commit cf0eaf13a1
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
members errors.
2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com> 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
* util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function. * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.

View file

@ -530,8 +530,8 @@ insert_array (grub_disk_t disk, struct grub_raid_array *new_array,
/* We found multiple devices with the same number. Again, /* We found multiple devices with the same number. Again,
this shouldn't happen. */ this shouldn't happen. */
return grub_error (GRUB_ERR_BAD_DEVICE, return grub_error (GRUB_ERR_BAD_DEVICE,
"found two disks with the number %d", "found two disks with the index %d for RAID %s",
new_array->number); new_array->index, array->name);
if (new_array->disk_size < array->disk_size) if (new_array->disk_size < array->disk_size)
array->disk_size = new_array->disk_size; array->disk_size = new_array->disk_size;