]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6111): Fix a warning when compiling on x86_64
authorMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 27 Aug 2007 15:05:18 +0000 (12:05 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:07:09 +0000 (22:07 -0300)
tcm825x.c: In function 'ioctl_try_fmt_cap':
tcm825x.c:639: warning: format '%d' expects type 'int', but argument 4
                                        has type 'long unsigned int'

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tcm825x.c

index 4b973b099e599d7cb58f4ced3ed79e9668ae36f3..3a139f288a9d8a25e393281b5317b1204ee19dee 100644 (file)
@@ -635,8 +635,8 @@ static int ioctl_try_fmt_cap(struct v4l2_int_device *s,
        struct v4l2_pix_format *pix = &f->fmt.pix;
 
        isize = tcm825x_find_size(s, pix->width, pix->height);
-       dev_dbg(&sensor->i2c_client->dev, "isize = %d num_capture = %d\n",
-               isize, TCM825X_NUM_CAPTURE_FORMATS);
+       dev_dbg(&sensor->i2c_client->dev, "isize = %d num_capture = %lu\n",
+               isize, (unsigned long)TCM825X_NUM_CAPTURE_FORMATS);
 
        pix->width = tcm825x_sizes[isize].width;
        pix->height = tcm825x_sizes[isize].height;