2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
* kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname): Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
This commit is contained in:
parent
6555d655e2
commit
97b2f2ffe8
2 changed files with 12 additions and 7 deletions
|
@ -322,8 +322,8 @@ grub_ieee1275_encode_devname (const char *path)
|
|||
{
|
||||
unsigned int partno = grub_strtoul (partition, 0, 0);
|
||||
|
||||
/* GRUB partition numbering is 0-based. */
|
||||
if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS))
|
||||
if (grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS))
|
||||
/* GRUB partition 1 is OF partition 0. */
|
||||
partno--;
|
||||
|
||||
/* Assume partno will require less than five bytes to encode. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue