mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
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:
1 parent
6555d655e2
commit
97b2f2ffe8
2 files changed
+12
-7
No files matched your search
@@ -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. */
|
||||
|
||||
Reference in new issue
Block a user