Commit 7bc9e77d authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes

PCI/x86: format early dump like other PCI output

Use %02x:%02x.%d rather than %02x:%02x:%02x so PCI addresses
look the same as in other parts of the kernel.
Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 600914ba
...@@ -69,11 +69,12 @@ void early_dump_pci_device(u8 bus, u8 slot, u8 func) ...@@ -69,11 +69,12 @@ void early_dump_pci_device(u8 bus, u8 slot, u8 func)
int j; int j;
u32 val; u32 val;
printk(KERN_INFO "PCI: %02x:%02x:%02x", bus, slot, func); printk(KERN_INFO "pci 0000:%02x:%02x.%d config space:",
bus, slot, func);
for (i = 0; i < 256; i += 4) { for (i = 0; i < 256; i += 4) {
if (!(i & 0x0f)) if (!(i & 0x0f))
printk("\n%04x:",i); printk("\n %02x:",i);
val = read_pci_config(bus, slot, func, i); val = read_pci_config(bus, slot, func, i);
for (j = 0; j < 4; j++) { for (j = 0; j < 4; j++) {
...@@ -115,4 +116,3 @@ void early_dump_pci_devices(void) ...@@ -115,4 +116,3 @@ void early_dump_pci_devices(void)
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment