* commands/lspci.c (grub_lspci_iter): Print the bus number
correctly.
2008-04-04 Pavel Roskin <proski@gnu.org>
+ * commands/lspci.c (grub_lspci_iter): Print the bus number
+ correctly.
+
* commands/lspci.c (grub_pci_classes): Fix typos.
(grub_lspci_iter): Don't print func twice. Print vendor ID
before device ID, as it's normally done.
const char *sclass;
grub_pci_address_t addr;
- grub_printf ("%02x:%02x.%x %04x:%04x", 0, dev, func, pciid & 0xFFFF, pciid >> 16);
+ grub_printf ("%02x:%02x.%x %04x:%04x", bus, dev, func, pciid & 0xFFFF,
+ pciid >> 16);
addr = grub_pci_make_address (bus, dev, func, 2);
class = grub_pci_read (addr);