diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 20:00:32 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 11:56:13 +0100 |
commit | b1a5dea69e48c3306e47ac470e3ff9f2fc0bbe28 (patch) | |
tree | 91240ca6aa2d052ef6e3c06069bc216dfd14c5f3 | |
parent | soc_camera: fix a weird cast on printk (diff) | |
download | linux-b1a5dea69e48c3306e47ac470e3ff9f2fc0bbe28.tar.xz linux-b1a5dea69e48c3306e47ac470e3ff9f2fc0bbe28.zip |
media: videobuf-dma-sg: Fix a weird cast
Just use %p. Fixes this warning:
drivers/media/v4l2-core/videobuf-dma-sg.c:247 videobuf_dma_init_kernel() warn: argument 2 to %08lx specifier is cast from pointer
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/v4l2-core/videobuf-dma-sg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index f412429cf5ba..add2edb23eac 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c @@ -244,9 +244,8 @@ static int videobuf_dma_init_kernel(struct videobuf_dmabuf *dma, int direction, goto out_free_pages; } - dprintk(1, "vmalloc is at addr 0x%08lx, size=%d\n", - (unsigned long)dma->vaddr, - nr_pages << PAGE_SHIFT); + dprintk(1, "vmalloc is at addr %p, size=%d\n", + dma->vaddr, nr_pages << PAGE_SHIFT); memset(dma->vaddr, 0, nr_pages << PAGE_SHIFT); dma->nr_pages = nr_pages; |