PCI: improve discovery/configuration messages

This makes PCI resource management messages more consistent and adds a few
new messages to aid debugging.

Whenever we assign resources to a device, update a BAR, or change a
bridge aperture, it's worth noting it.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Bjorn Helgaas
2009-11-04 10:32:57 -07:00
committed by Jesse Barnes
parent 0207c356ef
commit 865df576e8
5 changed files with 63 additions and 42 deletions

View File

@@ -2575,7 +2575,7 @@ int pci_resource_bar(struct pci_dev *dev, int resno, enum pci_bar_type *type)
return reg;
}
dev_err(&dev->dev, "BAR: invalid resource #%d\n", resno);
dev_err(&dev->dev, "BAR %d: invalid resource\n", resno);
return 0;
}