Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1461514
| From | Suman Anna <s-anna@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 10/13] rpmsg: use proper format-specifier for printing dma_addr_t |
| Date | 2016-08-13 01:50 +0200 |
| Message-ID | <s5un7-6A-1@gated-at.bofh.it> (permalink) |
| References | <s5un7-6A-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- drivers/rpmsg/virtio_rpmsg_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 1dbe756a987d..5d74ee4c00f1 100644 --- a/drivers/rpmsg/virtio_rpmsg_bus.c +++ b/drivers/rpmsg/virtio_rpmsg_bus.c @@ -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; -- 2.9.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 10/13] rpmsg: use proper format-specifier for printing dma_addr_t Suman Anna <s-anna@ti.com> - 2016-08-13 01:50 +0200
csiph-web