aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/host
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-04-29 08:58:07 -0400
committerBjorn Helgaas <bhelgaas@google.com>2014-04-29 12:47:25 -0400
commit9aa52850455f7e46bb9eb72ebb9d8a571bf11cce (patch)
tree5b8c54875aa8562f9586656cd3623336eec476c9 /drivers/pci/host
parent85802bbe755725b5bf92386b8a52eb6d089b581e (diff)
PCI: mvebu: Use '%pa' for printing 'phys_addr_t' type
Fix the following build warning that happens when building multi_v7_defconfig with CONFIG_ARM_LPAE=y: drivers/pci/host/pci-mvebu.c:334:5: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'phys_addr_t' [-Wformat=] Fix the warning by using '%pa' to printing 'phys_addr_t' type. While at it, also use the more standard notation [mem 0x-0x] for memory region. [bhelgaas: make end address inclusive, remove extra spaces] Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jason Cooper <jason@lakedaemon.net> Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'drivers/pci/host')
-rw-r--r--drivers/pci/host/pci-mvebu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 29d64c9efa85..7f450322f397 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -328,9 +328,11 @@ static void mvebu_pcie_add_windows(struct mvebu_pcie_port *port,
328 ret = mvebu_mbus_add_window_remap_by_id(target, attribute, base, 328 ret = mvebu_mbus_add_window_remap_by_id(target, attribute, base,
329 sz, remap); 329 sz, remap);
330 if (ret) { 330 if (ret) {
331 phys_addr_t end = base + sz - 1;
332
331 dev_err(&port->pcie->pdev->dev, 333 dev_err(&port->pcie->pdev->dev,
332 "Could not create MBus window at 0x%x, size 0x%x: %d\n", 334 "Could not create MBus window at [mem %pa-%pa]: %d\n",
333 base, sz, ret); 335 &base, &end, ret);
334 mvebu_pcie_del_windows(port, base - size_mapped, 336 mvebu_pcie_del_windows(port, base - size_mapped,
335 size_mapped); 337 size_mapped);
336 return; 338 return;