soc_camera: fix a weird cast on printk
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:33:36 +0000 (06:33 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:55:50 +0000 (06:55 -0400)
drivers/media/platform/soc_camera/soc_camera.c:790 soc_camera_mmap() warn: argument 4 to %08lx specifier is cast from pointer

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/soc_camera/soc_camera.c

index 1318512c8fe355ed58ad6618feaa12029b06f30c..69f0d8e80bd8dfe6fede68d7d8b25c32bbad3137 100644 (file)
@@ -787,7 +787,7 @@ static int soc_camera_mmap(struct file *file, struct vm_area_struct *vma)
        struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
        int err;
 
-       dev_dbg(icd->pdev, "mmap called, vma=0x%08lx\n", (unsigned long)vma);
+       dev_dbg(icd->pdev, "mmap called, vma=%p\n", vma);
 
        if (icd->streamer != file)
                return -EBUSY;