]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: shmobile: APMU: Fix warnings due to improper printk formats
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 4 Mar 2014 18:11:15 +0000 (19:11 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 6 Mar 2014 04:14:03 +0000 (13:14 +0900)
Use the %pr printk specifier to print resource variables. This fixes
warnings on platforms where resource_size_t has a different size than
int.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/platsmp-apmu.c

index 1da5a72d9642fbc2833e059f2e40aba407cbb795..8cb641c00fdb1f68b4ddd4cc3ad516a3bb994699 100644 (file)
@@ -75,8 +75,7 @@ static void apmu_init_cpu(struct resource *res, int cpu, int bit)
        apmu_cpus[cpu].iomem = ioremap_nocache(res->start, resource_size(res));
        apmu_cpus[cpu].bit = bit;
 
-       pr_debug("apmu ioremap %d %d 0x%08x 0x%08x\n", cpu, bit,
-                res->start, resource_size(res));
+       pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res);
 }
 
 static struct {