Skip to content

Commit

Permalink
PCI: use dev_printk for PCI bus resource mssages
Browse files Browse the repository at this point in the history
Since pci_bus has a struct device, use dev_printk directly instead
of faking it by hand.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Bjorn Helgaas authored and Jesse Barnes committed Jan 7, 2009
1 parent db56794 commit a19f5df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,8 @@ static void pci_bus_dump_res(struct pci_bus *bus)
if (!res)
continue;

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

Expand Down

0 comments on commit a19f5df

Please sign in to comment.