2008-04-04 Pavel Roskin <proski@gnu.org>
* commands/lspci.c (grub_lspci_iter): Print the bus number correctly.
This commit is contained in:
parent
4f657021a9
commit
8b088a4c48
2 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2008-04-04 Pavel Roskin <proski@gnu.org>
|
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.
|
* commands/lspci.c (grub_pci_classes): Fix typos.
|
||||||
(grub_lspci_iter): Don't print func twice. Print vendor ID
|
(grub_lspci_iter): Don't print func twice. Print vendor ID
|
||||||
before device ID, as it's normally done.
|
before device ID, as it's normally done.
|
||||||
|
|
|
@ -120,7 +120,8 @@ grub_lspci_iter (int bus, int dev, int func, grub_pci_id_t pciid)
|
||||||
const char *sclass;
|
const char *sclass;
|
||||||
grub_pci_address_t addr;
|
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);
|
addr = grub_pci_make_address (bus, dev, func, 2);
|
||||||
class = grub_pci_read (addr);
|
class = grub_pci_read (addr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue