2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
* kern/disk.c (grub_disk_open): Print debug messages when opening a disk. (grub_disk_close): Print debug messages when closing a disk. (grub_disk_read): Print debug messages when disk read fails. * kern/fs.c (grub_fs_probe): Print debug messages when detecting filesystem type. * kern/partition.c: Include misc.h. (grub_partition_iterate): Print debug messages when detecting partition type.
This commit is contained in:
parent
e2b8278c9e
commit
69203a9992
4 changed files with 48 additions and 7 deletions
|
@ -17,6 +17,7 @@
|
|||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <grub/misc.h>
|
||||
#include <grub/partition.h>
|
||||
#include <grub/disk.h>
|
||||
|
||||
|
@ -103,15 +104,20 @@ grub_partition_iterate (struct grub_disk *disk,
|
|||
|
||||
int part_map_iterate (const grub_partition_map_t p)
|
||||
{
|
||||
grub_err_t err = p->iterate (disk, part_map_iterate_hook);
|
||||
grub_err_t err;
|
||||
|
||||
grub_dprintf ("partition", "Detecting %s...\n", p->name);
|
||||
err = p->iterate (disk, part_map_iterate_hook);
|
||||
|
||||
if (err != GRUB_ERR_NONE)
|
||||
{
|
||||
/* Continue to next partition map type. */
|
||||
grub_dprintf ("partition", "%s detection failed.\n", p->name);
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
grub_dprintf ("partition", "%s detection succeeded.\n", p->name);
|
||||
partmap = p;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue