diff options
author | Hiroshi Doyu <hdoyu@nvidia.com> | 2013-10-21 12:08:12 +0300 |
---|---|---|
committer | Hiroshi Doyu <hdoyu@nvidia.com> | 2013-10-23 01:55:35 -0700 |
commit | 50e604e21a36022db112b89a89f1b7f84dfe463a (patch) | |
tree | b11e13da56664f42e0c97ff227ac7a40cdba275f /drivers/iommu | |
parent | b436a227848f0907ea83418ea3567454f11337f4 (diff) |
iommu/tegra: smmu: Print phys_addr_t/dma_addr_t using %pa
phys_addr_t/dma_addr_t becomes 64 bits wide and printing a variable of
that type using a simple %x format specifier causes the compiler to
complain. Change the format specifier to %pa, which is used
specifically for variables of type phys_addr_t/dma_addr_t.
Change-Id: I73c0e00f03e0f27e55210a9a37c3b3c54878b3d6
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/301717
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 99e38b661d56..c91767b175f6 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1335,9 +1335,8 @@ static phys_addr_t smmu_iommu_iova_to_phys(struct iommu_domain *domain, pa = pdir[pdn] << SMMU_PDE_SHIFT; } - dev_dbg(as->smmu->dev, - "iova:%08llx pfn:%08llx asid:%d\n", (unsigned long long)iova, - (u64)pa, as->asid); + dev_dbg(as->smmu->dev, "iova:%pa pfn:%pa asid:%d\n", + &iova, &pa, as->asid); spin_unlock_irqrestore(&as->lock, flags); return pa; @@ -1397,11 +1396,11 @@ static int smmu_iommu_attach_dev(struct iommu_domain *domain, dma_set_attr(DMA_ATTR_SKIP_CPU_SYNC, &attrs); err = dma_map_linear_attrs(dev, area->start, size, 0, &attrs); if (err == DMA_ERROR_CODE) - dev_err(dev, "Failed IOVA linear map %016llx(%x)\n", - (u64)area->start, size); + dev_err(dev, "Failed IOVA linear map %pa(%x)\n", + &area->start, size); else - dev_info(dev, "IOVA linear map %016llx(%x)\n", - (u64)area->start, size); + dev_info(dev, "IOVA linear map %pa(%x)\n", + &area->start, size); area++; } |