Skip to content

Commit

Permalink
V4L/DVB (6894): xc5000: fix build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 7972f98 commit 3f51451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/dvb/frontends/xc5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3f51451

Please sign in to comment.