Commit b605ed8b authored by Anna, Suman's avatar Anna, Suman Committed by Bjorn Andersson

remoteproc: use proper format-specifier for printing dma_addr_t

The dma_addr_t types can be printed properly using the %pad
printk format-specifier, there is no need to resort to the
unsigned long long type-casting to deal with different possible
type sizes.
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 4e968d9e
...@@ -236,8 +236,8 @@ int rproc_alloc_vring(struct rproc_vdev *rvdev, int i) ...@@ -236,8 +236,8 @@ int rproc_alloc_vring(struct rproc_vdev *rvdev, int i)
} }
notifyid = ret; notifyid = ret;
dev_dbg(dev, "vring%d: va %p dma %llx size %x idr %d\n", i, va, dev_dbg(dev, "vring%d: va %p dma %pad size %x idr %d\n",
(unsigned long long)dma, size, notifyid); i, va, &dma, size, notifyid);
rvring->va = va; rvring->va = va;
rvring->dma = dma; rvring->dma = dma;
...@@ -594,8 +594,8 @@ static int rproc_handle_carveout(struct rproc *rproc, ...@@ -594,8 +594,8 @@ static int rproc_handle_carveout(struct rproc *rproc,
goto free_carv; goto free_carv;
} }
dev_dbg(dev, "carveout va %p, dma %llx, len 0x%x\n", va, dev_dbg(dev, "carveout va %p, dma %pad, len 0x%x\n",
(unsigned long long)dma, rsc->len); va, &dma, rsc->len);
/* /*
* Ok, this is non-standard. * Ok, this is non-standard.
...@@ -639,8 +639,8 @@ static int rproc_handle_carveout(struct rproc *rproc, ...@@ -639,8 +639,8 @@ static int rproc_handle_carveout(struct rproc *rproc,
mapping->len = rsc->len; mapping->len = rsc->len;
list_add_tail(&mapping->node, &rproc->mappings); list_add_tail(&mapping->node, &rproc->mappings);
dev_dbg(dev, "carveout mapped 0x%x to 0x%llx\n", dev_dbg(dev, "carveout mapped 0x%x to %pad\n",
rsc->da, (unsigned long long)dma); rsc->da, &dma);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment