]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
V4L/DVB (7183): radio-si470x: fix build warning
authorMichael Krufky <mkrufky@linuxtv.org>
Sun, 10 Feb 2008 23:13:25 +0000 (20:13 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 18 Feb 2008 14:15:17 +0000 (11:15 -0300)
fix the following build warning:

radio-si470x.c: In function 'si470x_get_rds_registers':
radio-si470x.c:562: warning: format '%ld' expects type 'long int',
    but argument 3 has type 'unsigned int'

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/radio/radio-si470x.c

index 204577eb287bdcfd292b0c0ddb4ae01041a6b628..d428c3aa2bf943471bd249718be083a22c0dcf11 100644 (file)
@@ -558,7 +558,7 @@ static int si470x_get_rds_registers(struct si470x_device *radio)
                (void *) &buf, sizeof(buf), &size, usb_timeout);
        if (size != sizeof(buf))
                printk(KERN_WARNING DRIVER_NAME ": si470x_get_rds_register: "
-                      "return size differs: %d != %ld\n", size, sizeof(buf));
+                      "return size differs: %d != %uld\n", size, sizeof(buf));
        if (retval < 0)
                printk(KERN_WARNING DRIVER_NAME ": si470x_get_rds_registers: "
                        "usb_interrupt_msg returned %d\n", retval);