From: Alan Cox Date: Wed, 15 Oct 2008 09:50:32 +0000 (+0100) Subject: metronomefb: Fix warning when building 64bit X-Git-Tag: v2.6.28-rc1~566 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6d54aaf389bb47f30fd6567b88665689967be642;p=linux-2.6-omap-h63xx.git metronomefb: Fix warning when building 64bit The metronome driver produces warnings when built on x86-64 as it assumes that size_t is an int. Use %Zd instead. Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c index afeed0611e3..df1f757a616 100644 --- a/drivers/video/metronomefb.c +++ b/drivers/video/metronomefb.c @@ -188,7 +188,7 @@ static int __devinit load_waveform(u8 *mem, size_t size, int m, int t, epd_frame_table[par->dt].wfm_size = user_wfm_size; if (size != epd_frame_table[par->dt].wfm_size) { - dev_err(dev, "Error: unexpected size %d != %d\n", size, + dev_err(dev, "Error: unexpected size %Zd != %d\n", size, epd_frame_table[par->dt].wfm_size); return -EINVAL; }