diff options
author | Kevin Hao <haokexin@gmail.com> | 2013-05-25 07:36:25 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-05-25 13:58:01 -0400 |
commit | 33963e308e98064ce89d961ffeede2fb055f8ffc (patch) | |
tree | 22b9513099f0739524302ae8721c34a837e9f6b0 | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
PCI: Add 0x prefix to BAR register position in __pci_read_base()
We print the BAR register's position in hexadecimal format, so it
is more readable if 0x prefix is added.
[bhelgaas: keep dev_printk(), not dev_dbg(), so this is always in dmesg]
Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 70f10fa3c1b2..d40cd05bbf64 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -278,9 +278,9 @@ out: | |||
278 | pci_write_config_word(dev, PCI_COMMAND, orig_cmd); | 278 | pci_write_config_word(dev, PCI_COMMAND, orig_cmd); |
279 | 279 | ||
280 | if (bar_too_big) | 280 | if (bar_too_big) |
281 | dev_err(&dev->dev, "reg %x: can't handle 64-bit BAR\n", pos); | 281 | dev_err(&dev->dev, "reg 0x%x: can't handle 64-bit BAR\n", pos); |
282 | if (res->flags && !bar_disabled) | 282 | if (res->flags && !bar_disabled) |
283 | dev_printk(KERN_DEBUG, &dev->dev, "reg %x: %pR\n", pos, res); | 283 | dev_printk(KERN_DEBUG, &dev->dev, "reg 0x%x: %pR\n", pos, res); |
284 | 284 | ||
285 | return (res->flags & IORESOURCE_MEM_64) ? 1 : 0; | 285 | return (res->flags & IORESOURCE_MEM_64) ? 1 : 0; |
286 | } | 286 | } |