]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rpmsg: use proper format-specifier for printing dma_addr_t
authorAnna, Suman <s-anna@ti.com>
Fri, 12 Aug 2016 23:42:25 +0000 (18:42 -0500)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 13 Aug 2016 04:26:20 +0000 (21:26 -0700)
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>
drivers/rpmsg/virtio_rpmsg_bus.c

index 04fd6bd22a7206bc1dcf583f7d0ce875a859cdc2..7de44c356f1c341068fd6df7254efe665629d527 100644 (file)
@@ -991,8 +991,8 @@ static int rpmsg_probe(struct virtio_device *vdev)
                goto vqs_del;
        }
 
-       dev_dbg(&vdev->dev, "buffers: va %p, dma 0x%llx\n", bufs_va,
-                                       (unsigned long long)vrp->bufs_dma);
+       dev_dbg(&vdev->dev, "buffers: va %p, dma %pad\n",
+               bufs_va, &vrp->bufs_dma);
 
        /* half of the buffers is dedicated for RX */
        vrp->rbufs = bufs_va;