aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2012-03-04 06:33:28 -0500
committerOhad Ben-Cohen <ohad@wizery.com>2012-03-04 06:43:41 -0500
commit9d8ae5c22b73852e9b23ba4e520a64c29bbfc939 (patch)
treefff5ae1425f1b30ba19ef5ffe3b109af4643cb38 /drivers/rpmsg
parentf1d9e9c767f96f57a3cca5304c046f692e115ec9 (diff)
rpmsg: fix build warning when dma_addr_t is 64-bit
dev_dbg() in rpmsg_probe() made use of the %x formatting that expects an 'unsigned int' which dma_addr_t is not in cases where dma_addr_t is 64-bit (CONFIG_ARCH_DMA_ADDR_T_64BIT). Casting to a 'unsigned long long' and using %llx will avoid this. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> CC: Ohad Ben-Cohen <ohad@wizery.com> CC: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r--drivers/rpmsg/virtio_rpmsg_bus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index f93ca3b8fd42..75506ec2840e 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -916,8 +916,8 @@ static int rpmsg_probe(struct virtio_device *vdev)
916 if (!bufs_va) 916 if (!bufs_va)
917 goto vqs_del; 917 goto vqs_del;
918 918
919 dev_dbg(&vdev->dev, "buffers: va %p, dma 0x%x\n", bufs_va, 919 dev_dbg(&vdev->dev, "buffers: va %p, dma 0x%llx\n", bufs_va,
920 vrp->bufs_dma); 920 (unsigned long long)vrp->bufs_dma);
921 921
922 /* half of the buffers is dedicated for RX */ 922 /* half of the buffers is dedicated for RX */
923 vrp->rbufs = bufs_va; 923 vrp->rbufs = bufs_va;