Commit e637308b authored by Vincent Whitchurch's avatar Vincent Whitchurch Committed by Greg Kroah-Hartman

vop: Use %z for size_t

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: default avatarVincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 20e07af7
...@@ -587,7 +587,7 @@ static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf, ...@@ -587,7 +587,7 @@ static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf,
err: err:
vpdev->hw_ops->iounmap(vpdev, dbuf); vpdev->hw_ops->iounmap(vpdev, dbuf);
dev_dbg(vop_dev(vdev), 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); __func__, ubuf, dbuf, len, vr_idx);
return err; return err;
} }
...@@ -670,7 +670,7 @@ static int vop_virtio_copy_from_user(struct vop_vdev *vdev, void __user *ubuf, ...@@ -670,7 +670,7 @@ static int vop_virtio_copy_from_user(struct vop_vdev *vdev, void __user *ubuf,
err: err:
vpdev->hw_ops->iounmap(vpdev, dbuf); vpdev->hw_ops->iounmap(vpdev, dbuf);
dev_dbg(vop_dev(vdev), 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); __func__, ubuf, dbuf, len, vr_idx);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment