From 8b088a4c48c86567c710217dfec78f185e983e70 Mon Sep 17 00:00:00 2001 From: proski Date: Sat, 5 Apr 2008 02:07:11 +0000 Subject: [PATCH] 2008-04-04 Pavel Roskin * commands/lspci.c (grub_lspci_iter): Print the bus number correctly. --- ChangeLog | 3 +++ commands/lspci.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 80899c6a0..52e728f3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-04-04 Pavel Roskin + * 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. diff --git a/commands/lspci.c b/commands/lspci.c index dbade83d7..0f52cf5df 100644 --- a/commands/lspci.c +++ b/commands/lspci.c @@ -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);