mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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>
This commit is contained in:
parent
42eb523ff5
commit
b1a5dea69e
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue