diff options
author | Jesse Barnes <jbarnes@hobbes.(none)> | 2008-06-25 19:12:25 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-06-25 19:12:25 -0400 |
commit | e4ec7a00ed30429030112e5591cf3138645727c2 (patch) | |
tree | 0832a469122a6e3d8b388359d1839810f36429a1 /drivers | |
parent | 34438ba602f9b8904aafe7559046ea68e99e88a0 (diff) |
PCI: correct resource number in debug output
If pci_request_region fails, make the warning include the resource number,
not the resource number + 1.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8b755a7fb4ef..8e8ecc1da93d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1114,10 +1114,10 @@ int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) | |||
1114 | 1114 | ||
1115 | err_out: | 1115 | err_out: |
1116 | dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n", | 1116 | dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n", |
1117 | bar + 1, /* PCI BAR # */ | 1117 | bar, |
1118 | pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem", | 1118 | pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem", |
1119 | (unsigned long long)pci_resource_start(pdev, bar), | 1119 | (unsigned long long)pci_resource_start(pdev, bar), |
1120 | (unsigned long long)pci_resource_end(pdev, bar)); | 1120 | (unsigned long long)pci_resource_end(pdev, bar)); |
1121 | return -EBUSY; | 1121 | return -EBUSY; |
1122 | } | 1122 | } |
1123 | 1123 | ||