diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-08-15 09:52:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-08-15 12:09:03 -0400 |
commit | e710447ef1d2bd4e61e12b210039c00fbeacf624 (patch) | |
tree | 7e7761d78443c3179c3b59d8b6d5a82c54c9d14d | |
parent | 275672eb70efdf81c51b997d41a4409b404aa8f6 (diff) | |
download | seabios-e710447ef1d2bd4e61e12b210039c00fbeacf624.zip seabios-e710447ef1d2bd4e61e12b210039c00fbeacf624.tar.gz seabios-e710447ef1d2bd4e61e12b210039c00fbeacf624.tar.bz2 |
boot: Change ":rom%d" boot order rom instance to ":rom%x"
Use hex numbers for the rom instance count in boot order open firmware
device naming. The ":rom" suffix isn't part of a standard and it's
highly unlikely any rom would have 10 or more drives on it, but this
change makes the code more similar to the numbering of other boot
order devices.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r-- | src/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -189,7 +189,7 @@ int bootprio_find_pci_rom(struct pci_device *pci, int instance) char desc[256], *p; p = build_pci_path(desc, sizeof(desc), "*", pci); if (instance) - snprintf(p, desc+sizeof(desc)-p, ":rom%d", instance); + snprintf(p, desc+sizeof(desc)-p, ":rom%x", instance); return find_prio(desc); } @@ -201,7 +201,7 @@ int bootprio_find_named_rom(const char *name, int instance) char desc[256], *p; p = desc + snprintf(desc, sizeof(desc), "/rom@%s", name); if (instance) - snprintf(p, desc+sizeof(desc)-p, ":rom%d", instance); + snprintf(p, desc+sizeof(desc)-p, ":rom%x", instance); return find_prio(desc); } |