metronomefb: Fix warning when building 64bit
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 15 Oct 2008 09:50:32 +0000 (10:50 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Oct 2008 17:19:51 +0000 (10:19 -0700)
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 <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/metronomefb.c

index afeed0611e3e0896cc28e05d355a9fdad73a6d08..df1f757a6161cde2f7d189be4501567af96fd6f2 100644 (file)
@@ -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;
        }