[PATCH 4/4] iommu/fsl: Use %pa to print phys_addr_t

From: Joerg Roedel
Date: Mon Jan 26 2015 - 18:51:35 EST


From: Joerg Roedel <jroedel@xxxxxxx>

Fix two compile warnings.

Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
---
drivers/iommu/fsl_pamu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
index 80ac68d..e63904b 100644
--- a/drivers/iommu/fsl_pamu.c
+++ b/drivers/iommu/fsl_pamu.c
@@ -352,7 +352,7 @@ int pamu_config_ppaace(int liodn, phys_addr_t win_addr, phys_addr_t win_size,
unsigned long fspi;

if ((win_size & (win_size - 1)) || win_size < PAMU_PAGE_SIZE) {
- pr_debug("window size too small or not a power of two %llx\n", win_size);
+ pr_debug("window size too small or not a power of two %pa\n", &win_size);
return -EINVAL;
}

@@ -1138,7 +1138,7 @@ static int __init fsl_pamu_probe(struct platform_device *pdev)

if (csd_port_id) {
dev_dbg(&pdev->dev, "creating coherency subdomain at address "
- "0x%llx, size %zu, port id 0x%08x", ppaact_phys,
+ "%pa, size %zu, port id 0x%08x", &ppaact_phys,
mem_size, csd_port_id);

ret = create_csd(ppaact_phys, mem_size, csd_port_id);
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/