+2008-01-20 Robert Millan <rmh@aybabtu.com>
+
+ * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
+ grub_dprintf() calls from here ...
+ * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
+
2008-01-20 Robert Millan <rmh@aybabtu.com>
Fix detection of "real mode" when /options/real-mode? doesn't exist.
/* XXX: This should be large enough for any possible case. */
char devtype[64];
+ grub_dprintf ("devalias", "devalias name = %s\n", aliasname);
+
grub_ieee1275_get_property_length (aliases, aliasname, &pathlen);
/* The property `name' is a special case we should skip. */
if (grub_ieee1275_get_property (aliases, aliasname, devpath, pathlen,
&actual))
- goto nextprop;
+ {
+ grub_dprintf ("devalias", "get_property (%s) failed\n", aliasname);
+ goto nextprop;
+ }
if (grub_ieee1275_finddevice (devpath, &dev))
- goto nextprop;
+ {
+ grub_dprintf ("devalias", "finddevice (%s) failed\n", devpath);
+ goto nextprop;
+ }
if (grub_ieee1275_get_property (dev, "device_type", devtype,
sizeof devtype, &actual))
- goto nextprop;
+ {
+ grub_dprintf ("devalias", "get device type failed\n");
+ goto nextprop;
+ }
alias.name = aliasname;
alias.path = devpath;