vop: Use %z for size_t
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Wed, 16 Jan 2019 16:32:46 +0000 (17:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 10:42:14 +0000 (11:42 +0100)
Fixes these kind of errors on 32-bit:

 drivers/misc/mic/vop/vop_vringh.c:590:3:
 error: format '%lx' expects argument of type 'long unsigned int',
 but argument 7 has type 'size_t {aka unsigned int}' [-Werror=format=]

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/vop/vop_vringh.c

index cbc8ebcff5cfe19ae917ff1cfe3465930dc800b4..4267fa08b483ef322d885f2e59d60ddcf33fad8c 100644 (file)
@@ -587,7 +587,7 @@ static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf,
 err:
        vpdev->hw_ops->iounmap(vpdev, dbuf);
        dev_dbg(vop_dev(vdev),
-               "%s: ubuf %p dbuf %p len 0x%lx vr_idx 0x%x\n",
+               "%s: ubuf %p dbuf %p len 0x%zx vr_idx 0x%x\n",
                __func__, ubuf, dbuf, len, vr_idx);
        return err;
 }
@@ -670,7 +670,7 @@ memcpy:
 err:
        vpdev->hw_ops->iounmap(vpdev, dbuf);
        dev_dbg(vop_dev(vdev),
-               "%s: ubuf %p dbuf %p len 0x%lx vr_idx 0x%x\n",
+               "%s: ubuf %p dbuf %p len 0x%zx vr_idx 0x%x\n",
                __func__, ubuf, dbuf, len, vr_idx);
        return err;
 }