]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
PCI: correct resource number in debug output
authorJesse Barnes <jbarnes@hobbes.(none)>
Wed, 25 Jun 2008 23:12:25 +0000 (16:12 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 25 Jun 2008 23:12:25 +0000 (16:12 -0700)
If pci_request_region fails, make the warning include the resource number,
not the resource number + 1.

drivers/pci/pci.c

index 8b755a7fb4ef8bb5e64e4217f603026cfca41eb4..8e8ecc1da93d85b4404cd18dd07f21954fe2596f 100644 (file)
@@ -1114,10 +1114,10 @@ int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name)
 
 err_out:
        dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n",
-               bar + 1, /* PCI BAR # */
-               pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem",
-               (unsigned long long)pci_resource_start(pdev, bar),
-               (unsigned long long)pci_resource_end(pdev, bar));
+                bar,
+                pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem",
+                (unsigned long long)pci_resource_start(pdev, bar),
+                (unsigned long long)pci_resource_end(pdev, bar));
        return -EBUSY;
 }