pci: Add the bus and device informations to the debug output function

This will help when debugging, since there might be different bus and
device on the same target.

Change-Id: I886a256f14a960d2faed71561416ee3bee20af1e
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-08-31 16:58:11 +03:00 committed by Anas Nashif
commit 1780da4151

View file

@ -501,7 +501,10 @@ void pci_enable_regs(struct pci_dev_info *dev_info)
void pci_show(struct pci_dev_info *dev_info)
{
printk("PCI device:\n");
printk("%X:%X class: 0x%X, %u, %u, %s, addrs: 0x%X-0x%X, IRQ %d\n",
printk("%u:%u %X:%X class: 0x%X, %u, %u, %s,"
"addrs: 0x%X-0x%X, IRQ %d\n",
dev_info->bus,
dev_info->dev,
dev_info->vendor_id,
dev_info->device_id,
dev_info->class,