media: cx23885: fix a warning
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 19:16:25 +0000 (15:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:55:26 +0000 (06:55 -0400)
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>
drivers/media/pci/cx23885/cx23885-alsa.c

index d8c3637e492e37245c8fb5494e1ed62ffa163039..20b3cb17f97fba925810c37dffdf86e109f95d89 100644 (file)
@@ -89,9 +89,8 @@ static int cx23885_alsa_dma_init(struct cx23885_audio_dev *chip, int nr_pages)
                return -ENOMEM;
        }
 
-       dprintk(1, "vmalloc is at addr 0x%08lx, size=%d\n",
-                               (unsigned long)buf->vaddr,
-                               nr_pages << PAGE_SHIFT);
+       dprintk(1, "vmalloc is at addr %p, size=%d\n",
+               buf->vaddr, nr_pages << PAGE_SHIFT);
 
        memset(buf->vaddr, 0, nr_pages << PAGE_SHIFT);
        buf->nr_pages = nr_pages;