PCI: log PCI device as bus:device.function tuple

Refers to comment in #417.
This commit is contained in:
Christian Helmuth 2012-10-18 21:51:54 +02:00
parent 7822c4e9a4
commit 502976dec1
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ static bool handle_pci_port_write(unsigned short port, T val)
unsigned devfn = (val >> 8) & 0xffff;
if (devfn != pci_card()->devfn()) {
if (verbose)
PWRN("accessing unknown PCI device %x", devfn);
PWRN("accessing unknown PCI device %02x:%02x.%x",
devfn >> 8, (devfn >> 3) & 0x1f, devfn & 0x7);
pci_cfg_addr_valid = false;
return true;
}