gpu: host1x: Print address/offset pairs consistently
authorThierry Reding <treding@nvidia.com>
Thu, 12 Jun 2014 11:24:17 +0000 (13:24 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:11:41 +0000 (16:11 +0100)
Consistently use a format of %pad+%#x to print address/offset in debug
messages.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/hw/cdma_hw.c
drivers/gpu/host1x/hw/debug_hw.c

index 072d8209c06c975f877db4b71802a7ae8073ebd4..305ea8f3382d22da2611e6de7025695265d97699 100644 (file)
@@ -54,8 +54,8 @@ static void cdma_timeout_cpu_incr(struct host1x_cdma *cdma, u32 getptr,
                u32 *p = (u32 *)(pb->mapped + getptr);
                *(p++) = HOST1X_OPCODE_NOP;
                *(p++) = HOST1X_OPCODE_NOP;
-               dev_dbg(host1x->dev, "%s: NOP at %#llx\n", __func__,
-                       (u64)pb->phys + getptr);
+               dev_dbg(host1x->dev, "%s: NOP at %pad+%#x\n", __func__,
+                       &pb->phys, getptr);
                getptr = (getptr + 8) & (pb->size_bytes - 1);
        }
        wmb();
index f72c873eff819f831202a742cf02ec70e94753f2..791de9351eebff26946919c6b7b3e747489d2579 100644 (file)
@@ -163,8 +163,8 @@ static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma)
                                continue;
                        }
 
-                       host1x_debug_output(o, "    GATHER at %#llx+%04x, %d words\n",
-                                           (u64)g->base, g->offset, g->words);
+                       host1x_debug_output(o, "    GATHER at %pad+%#x, %d words\n",
+                                           &g->base, g->offset, g->words);
 
                        show_gather(o, g->base + g->offset, g->words, cdma,
                                    g->base, mapped);
This page took 0.025935 seconds and 5 git commands to generate.