]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
Use correct format specifier
authorJoe Korty <joe.korty@ccur.com>
Wed, 25 May 2016 07:04:24 +0000 (12:34 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 29 Jul 2016 14:30:25 +0000 (07:30 -0700)
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 36d8dad05faa3b882ceb773bba6e26502ecc15af..d1722bb2466f3f55ca22e58f5eeba9f685c21f38 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,