]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
media: ivtvfb: Cleanup some warnings
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:52:25 +0000 (06:52 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:56:15 +0000 (06:56 -0400)
drivers/media/pci/ivtv/ivtvfb.c:349 ivtvfb_prep_frame() warn: argument 3 to %08lx specifier is cast from pointer
drivers/media/pci/ivtv/ivtvfb.c:360 ivtvfb_prep_frame() warn: argument 3 to %08lx specifier is cast from pointer
drivers/media/pci/ivtv/ivtvfb.c:363 ivtvfb_prep_frame() warn: argument 4 to %08lx specifier is cast from pointer

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

index 621b2f613d818dbc7ae8f9ddf9fa3310010aaabb..8e62b8be6529d5f5becb88aefb91b7ea7fa18678 100644 (file)
@@ -346,8 +346,8 @@ static int ivtvfb_prep_frame(struct ivtv *itv, int cmd, void __user *source,
 
        /* Not fatal, but will have undesirable results */
        if ((unsigned long)source & 3)
-               IVTVFB_WARN("ivtvfb_prep_frame: Source address not 32 bit aligned (0x%08lx)\n",
-                       (unsigned long)source);
+               IVTVFB_WARN("ivtvfb_prep_frame: Source address not 32 bit aligned (%p)\n",
+                           source);
 
        if (dest_offset & 3)
                IVTVFB_WARN("ivtvfb_prep_frame: Dest offset not 32 bit aligned (%ld)\n", dest_offset);
@@ -357,12 +357,10 @@ static int ivtvfb_prep_frame(struct ivtv *itv, int cmd, void __user *source,
 
        /* Check Source */
        if (!access_ok(VERIFY_READ, source + dest_offset, count)) {
-               IVTVFB_WARN("Invalid userspace pointer 0x%08lx\n",
-                       (unsigned long)source);
+               IVTVFB_WARN("Invalid userspace pointer %p\n", source);
 
-               IVTVFB_DEBUG_WARN("access_ok() failed for offset 0x%08lx source 0x%08lx count %d\n",
-                       dest_offset, (unsigned long)source,
-                       count);
+               IVTVFB_DEBUG_WARN("access_ok() failed for offset 0x%08lx source %p count %d\n",
+                                 dest_offset, source, count);
                return -EINVAL;
        }