diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-22 15:16:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-23 06:55:26 -0400 |
commit | 6b65dd4c2c318f8ae666d74ba116b417b5e8263f (patch) | |
tree | 84fc82eef7b0ce137431cec70335ebcf27a78090 | |
parent | aea629c1261f9a8ba06a8ee93b45ac5bd4475943 (diff) |
media: cx23885: fix a warning
drivers/media/pci/cx23885/cx23885-alsa.c:92 cx23885_alsa_dma_init() warn: argument 3 to %08lx specifier is cast from pointer
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/pci/cx23885/cx23885-alsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-alsa.c b/drivers/media/pci/cx23885/cx23885-alsa.c index d8c3637e492e..20b3cb17f97f 100644 --- a/drivers/media/pci/cx23885/cx23885-alsa.c +++ b/drivers/media/pci/cx23885/cx23885-alsa.c | |||
@@ -89,9 +89,8 @@ static int cx23885_alsa_dma_init(struct cx23885_audio_dev *chip, int nr_pages) | |||
89 | return -ENOMEM; | 89 | return -ENOMEM; |
90 | } | 90 | } |
91 | 91 | ||
92 | dprintk(1, "vmalloc is at addr 0x%08lx, size=%d\n", | 92 | dprintk(1, "vmalloc is at addr %p, size=%d\n", |
93 | (unsigned long)buf->vaddr, | 93 | buf->vaddr, nr_pages << PAGE_SHIFT); |
94 | nr_pages << PAGE_SHIFT); | ||
95 | 94 | ||
96 | memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); | 95 | memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT); |
97 | buf->nr_pages = nr_pages; | 96 | buf->nr_pages = nr_pages; |