2008-04-04 Pavel Roskin <proski@gnu.org>

* commands/lspci.c (grub_lspci_iter): Print the bus number
	correctly.
This commit is contained in:
proski 2008-04-05 02:07:11 +00:00
parent 4f657021a9
commit 8b088a4c48
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
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.

View file

@ -120,7 +120,8 @@ grub_lspci_iter (int bus, int dev, int func, grub_pci_id_t pciid)
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);