ARM: OMAP: fix trivial warnings for dspbridge
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 8 May 2012 23:31:12 +0000 (16:31 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 9 May 2012 17:27:35 +0000 (10:27 -0700)
arch/arm/plat-omap/devices.c: In function 'omap_dsp_reserve_sdram_memblock':
arch/arm/plat-omap/devices.c:170: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'phys_addr_t'
arch/arm/mach-omap2/dsp.c: In function 'omap_dsp_init':
arch/arm/mach-omap2/dsp.c:60: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'phys_addr_t'
arch/arm/mach-omap2/dsp.c:60: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'phys_addr_t'

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/dsp.c
arch/arm/plat-omap/devices.c

index 74f18f2952df220107c1846e98c4d34b7007243f..3376388b317a8e597112ddccb855fbc2ce971619 100644 (file)
@@ -57,8 +57,9 @@ static int __init omap_dsp_init(void)
 
        if (pdata->phys_mempool_base) {
                pdata->phys_mempool_size = CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE;
-               pr_info("%s: %x bytes @ %x\n", __func__,
-                       pdata->phys_mempool_size, pdata->phys_mempool_base);
+               pr_info("%s: %llx bytes @ %llx\n", __func__,
+                       (unsigned long long)pdata->phys_mempool_size,
+                       (unsigned long long)pdata->phys_mempool_base);
        }
 
        pdev = platform_device_alloc("omap-dsp", -1);
index 60278f47c0bdd71953cc5c1483a68a7a02a0b50f..09b07d25289273223d20287b3a4ca35099eec8f2 100644 (file)
@@ -167,8 +167,8 @@ void __init omap_dsp_reserve_sdram_memblock(void)
 
        paddr = arm_memblock_steal(size, SZ_1M);
        if (!paddr) {
-               pr_err("%s: failed to reserve %x bytes\n",
-                               __func__, size);
+               pr_err("%s: failed to reserve %llx bytes\n",
+                               __func__, (unsigned long long)size);
                return;
        }