Use correct format specifier
Joe Korty [Wed, 25 May 2016 07:04:24 +0000 (12:04 +0530)]
Use %zd, not %d, to display size_t arguments

drivers/media/platform/tegra/imx091.c:2826:35:
warning: format '%d' expects argument of type 'int',
but argument 5 has type 'long unsigned int' [-Wformat=]

Bug 200187768

Change-Id: I2591203af81f5c3f64b55e8e722fdbc5a59c8de4
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Signed-off-by: Gaurav Singh <gaursingh@nvidia.com>
Reviewed-on: http://git-master/r/1163906
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

drivers/media/platform/tegra/imx091.c

index 36d8dad..d1722bb 100644 (file)
@@ -2823,7 +2823,7 @@ static long imx091_ioctl(struct file *file,
                return 0;
 
        case _IOC_NR(NVC_IOCTL_CAPS_RD):
-               dev_dbg(&info->i2c_client->dev, "%s CAPS_RD n=%d\n",
+               dev_dbg(&info->i2c_client->dev, "%s CAPS_RD n=%zd\n",
                        __func__, sizeof(imx091_dflt_cap));
                data_ptr = info->cap;
                if (copy_to_user((void __user *)arg,