]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/omap: Print phys_addr_t using %pa
authorJoerg Roedel <jroedel@suse.de>
Thu, 22 Jan 2015 13:42:06 +0000 (14:42 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Jan 2015 13:08:07 +0000 (14:08 +0100)
Fixes this compile warning:

drivers/iommu/omap-iommu.c: In function 'omap_iommu_map':
drivers/iommu/omap-iommu.c:1139:2: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'phys_addr_t' [-Wformat=]
  dev_dbg(dev, "mapping da 0x%lx to pa 0x%x size 0x%x\n", da, pa, bytes);

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c

index bbb7dcef02d3822420df81ca9fa7b563b5de84fe..f59f857b702e8e3f65080edd43b743a54091170f 100644 (file)
@@ -1126,7 +1126,7 @@ static int omap_iommu_map(struct iommu_domain *domain, unsigned long da,
                return -EINVAL;
        }
 
-       dev_dbg(dev, "mapping da 0x%lx to pa 0x%x size 0x%x\n", da, pa, bytes);
+       dev_dbg(dev, "mapping da 0x%lx to pa %pa size 0x%x\n", da, &pa, bytes);
 
        iotlb_init_entry(&e, da, pa, omap_pgsz);