[media] s5k5baf: Fix build warning
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 24 Dec 2013 11:42:03 +0000 (08:42 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 10:48:11 +0000 (08:48 -0200)
Fixes the following warnings:
drivers/media/i2c/s5k5baf.c: In function 's5k5baf_fw_parse':
drivers/media/i2c/s5k5baf.c:362:3: warning:
format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=]
drivers/media/i2c/s5k5baf.c:383:4: warning:
format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/s5k5baf.c

index e3b44a8..139bdd4 100644 (file)
@@ -359,7 +359,7 @@ static int s5k5baf_fw_parse(struct device *dev, struct s5k5baf_fw **fw,
        int ret;
 
        if (count < S5K5BAG_FW_TAG_LEN + 1) {
-               dev_err(dev, "firmware file too short (%d)\n", count);
+               dev_err(dev, "firmware file too short (%zu)\n", count);
                return -EINVAL;
        }
 
@@ -379,7 +379,7 @@ static int s5k5baf_fw_parse(struct device *dev, struct s5k5baf_fw **fw,
 
        f = (struct s5k5baf_fw *)d;
        if (count < 1 + 2 * f->count) {
-               dev_err(dev, "invalid firmware header (count=%d size=%d)\n",
+               dev_err(dev, "invalid firmware header (count=%d size=%zu)\n",
                        f->count, 2 * (count + S5K5BAG_FW_TAG_LEN));
                return -EINVAL;
        }