]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: fix PCI allocation warning
authorAnton Blanchard <anton@samba.org>
Sat, 7 Aug 2004 07:56:54 +0000 (00:56 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 7 Aug 2004 07:56:54 +0000 (00:56 -0700)
Print the correct domain when a PCI resource allocation fails.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/pSeries_pci.c

index a04037bba2200a86df8cb1c275efec47d0532d96..92bc868f31d9a6d5834734980e0e5e447d30023e 100644 (file)
@@ -600,8 +600,9 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
                        BUG();  /* No I/O resource for this PHB? */
 
                if (request_resource(&ioport_resource, res))
-                       printk(KERN_ERR "Failed to request IO"
-                                       "on hose %d\n", 0 /* FIXME */);
+                       printk(KERN_ERR "Failed to request IO on "
+                                       "PCI domain %d\n", pci_domain_nr(bus));
+
 
                for (i = 0; i < 3; ++i) {
                        res = &hose->mem_resources[i];
@@ -609,8 +610,9 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
                                BUG();  /* No memory resource for this PHB? */
                        bus->resource[i+1] = res;
                        if (res->flags && request_resource(&iomem_resource, res))
-                               printk(KERN_ERR "Failed to request MEM"
-                                               "on hose %d\n", 0 /* FIXME */);
+                               printk(KERN_ERR "Failed to request MEM on "
+                                               "PCI domain %d\n",
+                                               pci_domain_nr(bus));
                }
        } else if (pci_probe_only &&
                   (dev->class >> 8) == PCI_CLASS_BRIDGE_PCI) {