lkml.org 
[lkml]   [2008]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 3/6] PCI: print "bar", not "bar + 1" in pci_request_region()
Change the BAR number printed by pci_request_region() from "bar + 1" to "bar".

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Index: work11/drivers/pci/pci.c
===================================================================
--- work11.orig/drivers/pci/pci.c 2008-06-27 08:27:29.000000000 -0600
+++ work11/drivers/pci/pci.c 2008-06-27 08:27:47.000000000 -0600
@@ -1116,7 +1116,7 @@ int pci_request_region(struct pci_dev *p

err_out:
dev_warn(&pdev->dev, "BAR %d: can't reserve %s region [%#llx-%#llx]\n",
- bar + 1, /* PCI BAR # */
+ bar, /* 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));
--


\
 
 \ /
  Last update: 2008-06-27 16:55    [from the cache]
©2003-2011 Jasper Spaans