Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29935282 authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Jesse Barnes
Browse files

PCI: make PCI bus resource messages more meaningful



Change PCI bus resource messages so they have a bit more context
and look like the rest of PCI, e.g.,

    - bus: 00 index 0 io port: [0x00-0xffff]
    - bus: 00 index 1 mmio: [0x000000-0xffffffff]
    + pci 0000:00: bus resource 0 io : [0x00-0xffff]
    + pci 0000:00: bus resource 1 mem: [0x000000-0xffffffff]

This also changes them from KERN_INFO to KERN_DEBUG.

Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 2a9d3521
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -536,9 +536,9 @@ static void pci_bus_dump_res(struct pci_bus *bus)
                if (!res)
                if (!res)
                        continue;
                        continue;


		printk(KERN_INFO "bus: %02x index %x %s: %pR\n",
		printk(KERN_DEBUG "pci %04x:%02x: bus resource %d %s %pR\n",
		       bus->number, i,
		       pci_domain_nr(bus), bus->number, i,
		       (res->flags & IORESOURCE_IO) ? "io port" : "mmio", res);
		       (res->flags & IORESOURCE_IO) ? "io: " : "mem:", res);
        }
        }
}
}