[media] saa7164: fix a warning at some printk's on i386
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Oct 2010 19:26:04 +0000 (16:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:55:24 +0000 (07:55 -0200)
drivers/media/video/saa7164/saa7164-buffer.c: In function ‘saa7164_buffer_display’:
drivers/media/video/saa7164/saa7164-buffer.c:76: warning: cast to pointer from integer of different size
drivers/media/video/saa7164/saa7164-buffer.c:78: warning: cast to pointer from integer of different size

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-buffer.c

index 187e3f60fa5ac074a941a49162a9d0d3ce5b8bb2..2afe9f1a6c87430b007048a1acaf086a60596b61 100644 (file)
@@ -73,10 +73,10 @@ void saa7164_buffer_display(struct saa7164_buffer *buf)
 
        dprintk(DBGLVL_BUF, "%s()   buffer @ 0x%p nr=%d\n",
                __func__, buf, buf->idx);
-       dprintk(DBGLVL_BUF, "  pci_cpu @ 0x%p    dma @ 0x%p len = 0x%x\n",
-               buf->cpu, (void *)buf->dma, buf->pci_size);
-       dprintk(DBGLVL_BUF, "   pt_cpu @ 0x%p pt_dma @ 0x%p len = 0x%x\n",
-               buf->pt_cpu, (void *)buf->pt_dma, buf->pt_size);
+       dprintk(DBGLVL_BUF, "  pci_cpu @ 0x%p    dma @ 0x%08llx len = 0x%x\n",
+               buf->cpu, (long long)buf->dma, buf->pci_size);
+       dprintk(DBGLVL_BUF, "   pt_cpu @ 0x%p pt_dma @ 0x%08llx len = 0x%x\n",
+               buf->pt_cpu, (long long)buf->pt_dma, buf->pt_size);
 
        /* Format the Page Table Entries to point into the data buffer */
        for (i = 0 ; i < SAA7164_PT_ENTRIES; i++) {