Quoting Robert Millan <[EMAIL PROTECTED]>:

On Thu, Jun 26, 2008 at 12:54:54PM -0400, Pavel Roskin wrote:
+             dos_part = grub_cpu_to_le32 (root_dev->disk->partition->index);
+             bsd_part = grub_cpu_to_le32 (-1);
[...]
   grub_util_info ("dos partition is %d, bsd partition is %d",
-                 grub_le_to_cpu32 (*install_dos_part),
-                 grub_le_to_cpu32 (*install_bsd_part));
+                 grub_le_to_cpu32 (dos_part), grub_le_to_cpu32 (bsd_part));

You're doing endian conversion twice.

Nice catch, thanks! Anyway, the code is PC specific, so the conversions do nothing.

--
Regards,
Pavel Roskin


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to