drivers: video: tegra: Fix phys_add_t printing
Alex Van Brunt [Thu, 11 Oct 2012 18:29:52 +0000 (11:29 -0700)]
Use "%llx" to print variables with the type phys_addr_t.

Change-Id: I7e155dbf56b9118f16a92dcf5184acc9a56c048b
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/195668

drivers/video/tegra/dc/dc.c
drivers/video/tegra/host/gk20a/gk20a.c
drivers/video/tegra/host/host1x/host1x_cdma.c
drivers/video/tegra/nvmap/nvmap_heap.c

index f9dea4b..1cb1e6f 100644 (file)
@@ -2646,8 +2646,8 @@ static int tegra_dc_probe(struct platform_device *ndev)
                isomgr_client_id = TEGRA_ISO_CLIENT_DISP_1;
        } else {
                dev_err(&ndev->dev,
-                       "Unknown base address %#08x: unable to assign syncpt\n",
-                       res->start);
+                       "Unknown base address %llx: unable to assign syncpt\n",
+                       (u64)res->start);
        }
 
 
index 6110b9c..f2b1dbb 100644 (file)
@@ -564,8 +564,8 @@ int nvhost_init_gk20a_support(struct platform_device *dev)
                        gk20a_intr_isr, gk20a_intr_thread,
                        0, "gk20a", g);
        if (err) {
-               dev_err(dev_from_gk20a(g), "failed to request stall interrupt irq @ %d\n",
-                       gk20a_intr.start);
+               dev_err(dev_from_gk20a(g), "failed to request stall interrupt irq @ %lld\n",
+                       (u64)gk20a_intr.start);
                goto fail;
        }
        g->irq_requested = true;
index 49771ab..67cb2c5 100644 (file)
@@ -245,8 +245,8 @@ static void cdma_timeout_pb_cleanup(struct nvhost_cdma *cdma, u32 getptr,
                u32 *p = (u32 *)((u32)pb->mapped + getidx);
                *(p++) = NVHOST_OPCODE_NOOP;
                *(p++) = NVHOST_OPCODE_NOOP;
-               dev_dbg(&dev->dev->dev, "%s: NOP at 0x%x\n",
-                       __func__, pb->phys + getidx);
+               dev_dbg(&dev->dev->dev, "%s: NOP at 0x%llx\n",
+                       __func__, (u64)(pb->phys + getidx));
                getidx = (getidx + 8) & (PUSH_BUFFER_SIZE - 1);
        }
        wmb();
index 5987d89..a020a46 100644 (file)
@@ -712,8 +712,8 @@ struct nvmap_heap *nvmap_heap_create(struct device *parent, const char *name,
 
        if (WARN_ON(buddy_size && (base & (buddy_size - 1)))) {
                phys_addr_t orig = base;
-               dev_warn(parent, "%s: base address %p not aligned to "
-                        "buddy_size %u\n", __func__, (void *)base, buddy_size);
+               dev_warn(parent, "%s: base address 0x%llx not aligned to "
+                        "buddy_size %u\n", __func__, (u64)base, buddy_size);
                base = ALIGN(base, buddy_size);
                len -= (base - orig);
        }