V4L/DVB (6894): xc5000: fix build warning
authorMichael Krufky <mkrufky@linuxtv.org>
Fri, 21 Dec 2007 19:20:23 +0000 (16:20 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:14 +0000 (19:04 -0200)
Fix the following build warning:

xc5000.c:560: warning: format '%d' expects type 'int',
      but argument 2 has type 'size_t'

On many architectrues size_t is unsigned long, and may not be printed with %d.
Use %Zu instead.

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

index 9edd071153951362ec1113b999fcfc7c9e732712..106004e124599521b9a38ac9c6d1c4243c173260 100644 (file)
@@ -533,7 +533,8 @@ static int xc5000_fwupload(struct dvb_frontend* fe)
                printk(KERN_ERR "xc5000: Upload failed. (file not found?)\n");
                ret = XC_RESULT_RESET_FAILURE;
        } else {
-               printk(KERN_INFO "xc5000: firmware read %d bytes.\n", fw->size);
+               printk(KERN_INFO "xc5000: firmware read %Zu bytes.\n",
+                      fw->size);
                ret = XC_RESULT_SUCCESS;
        }