[patch] PCI: add debug information to resource collision message

From: Chuck Ebbert
Date: Tue Apr 10 2007 - 10:26:19 EST


Add more information to PCI resource collision message
to help with debugging.

Signed-off-by: Chuck Ebbert <cebbert@xxxxxxxxxx>
---
arch/i386/pci/i386.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.20.noarch.orig/arch/i386/pci/i386.c
+++ linux-2.6.20.noarch/arch/i386/pci/i386.c
@@ -246,8 +246,8 @@ int pcibios_enable_resources(struct pci_
continue;
if (!r->start && r->end) {
printk(KERN_ERR "PCI: Device %s not available "
- "because of resource collisions\n",
- pci_name(dev));
+ "because of resource %d collisions\n",
+ pci_name(dev), idx);
return -EINVAL;
}
if (r->flags & IORESOURCE_IO)