From 62c78c967f2e06958ebbc53686802e44bd961636 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 25 Sep 2010 23:46:08 -0300 Subject: [PATCH] [media] cx231xx: remove a printk warning at -avcore and at -417 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit drivers/media/video/cx231xx/cx231xx-avcore.c:1608: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’ drivers/media/video/cx231xx/cx231xx-417.c:1047: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘size_t’ Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/cx231xx/cx231xx-417.c | 2 +- drivers/media/video/cx231xx/cx231xx-avcore.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/video/cx231xx/cx231xx-417.c b/drivers/media/video/cx231xx/cx231xx-417.c index 38acc55cb9b6..6fb2d1743569 100644 --- a/drivers/media/video/cx231xx/cx231xx-417.c +++ b/drivers/media/video/cx231xx/cx231xx-417.c @@ -1044,7 +1044,7 @@ static int cx231xx_load_firmware(struct cx231xx *dev) /* transfer to the chip */ dprintk(2, "Loading firmware to GPIO...\n"); p_fw_data = (u32 *)firmware->data; - dprintk(2, "firmware->size=%d\n", firmware->size); + dprintk(2, "firmware->size=%zd\n", firmware->size); for (transfer_size = 0; transfer_size < firmware->size; transfer_size += 4) { fw_data = *p_fw_data; diff --git a/drivers/media/video/cx231xx/cx231xx-avcore.c b/drivers/media/video/cx231xx/cx231xx-avcore.c index b4eda903d27d..ab9fbf82b4d2 100644 --- a/drivers/media/video/cx231xx/cx231xx-avcore.c +++ b/drivers/media/video/cx231xx/cx231xx-avcore.c @@ -1605,7 +1605,7 @@ void cx231xx_set_DIF_bandpass(struct cx231xx *dev, u32 if_freq, if_freq = 16000000; } - cx231xx_info("Enter IF=%d\n", + cx231xx_info("Enter IF=%zd\n", sizeof(Dif_set_array)/sizeof(struct dif_settings)); for (i = 0; i < sizeof(Dif_set_array)/sizeof(struct dif_settings); i++) { if (Dif_set_array[i].if_freq == if_freq) { -- 2.39.5