From 6d54aaf389bb47f30fd6567b88665689967be642 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 15 Oct 2008 10:50:32 +0100 Subject: 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 --- drivers/video/metronomefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/video/metronomefb.c') diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c index afeed0611e3e..df1f757a6161 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; } -- cgit v1.2.2