diff options
author | Anna, Suman <s-anna@ti.com> | 2016-08-12 19:42:16 -0400 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-08-13 00:27:46 -0400 |
commit | b605ed8b2db63aea1e0ee9fce5513ae3ff8c8928 (patch) | |
tree | ee802d530aaa28d7d10e3678faacb2d647d53345 | |
parent | 4e968d9e46ceee57e3f5b96d1486745416c9a4a5 (diff) |
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: Suman Anna <s-anna@ti.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
-rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 63fd365dec14..3a9982b8e8c2 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c | |||
@@ -236,8 +236,8 @@ int rproc_alloc_vring(struct rproc_vdev *rvdev, int i) | |||
236 | } | 236 | } |
237 | notifyid = ret; | 237 | notifyid = ret; |
238 | 238 | ||
239 | dev_dbg(dev, "vring%d: va %p dma %llx size %x idr %d\n", i, va, | 239 | dev_dbg(dev, "vring%d: va %p dma %pad size %x idr %d\n", |
240 | (unsigned long long)dma, size, notifyid); | 240 | i, va, &dma, size, notifyid); |
241 | 241 | ||
242 | rvring->va = va; | 242 | rvring->va = va; |
243 | rvring->dma = dma; | 243 | rvring->dma = dma; |
@@ -594,8 +594,8 @@ static int rproc_handle_carveout(struct rproc *rproc, | |||
594 | goto free_carv; | 594 | goto free_carv; |
595 | } | 595 | } |
596 | 596 | ||
597 | dev_dbg(dev, "carveout va %p, dma %llx, len 0x%x\n", va, | 597 | dev_dbg(dev, "carveout va %p, dma %pad, len 0x%x\n", |
598 | (unsigned long long)dma, rsc->len); | 598 | va, &dma, rsc->len); |
599 | 599 | ||
600 | /* | 600 | /* |
601 | * Ok, this is non-standard. | 601 | * Ok, this is non-standard. |
@@ -639,8 +639,8 @@ static int rproc_handle_carveout(struct rproc *rproc, | |||
639 | mapping->len = rsc->len; | 639 | mapping->len = rsc->len; |
640 | list_add_tail(&mapping->node, &rproc->mappings); | 640 | list_add_tail(&mapping->node, &rproc->mappings); |
641 | 641 | ||
642 | dev_dbg(dev, "carveout mapped 0x%x to 0x%llx\n", | 642 | dev_dbg(dev, "carveout mapped 0x%x to %pad\n", |
643 | rsc->da, (unsigned long long)dma); | 643 | rsc->da, &dma); |
644 | } | 644 | } |
645 | 645 | ||
646 | /* | 646 | /* |