diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2008-10-15 05:50:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-15 13:19:51 -0400 |
commit | 6d54aaf389bb47f30fd6567b88665689967be642 (patch) | |
tree | 796ef2604fa9b9f71ae4b59dced97b1d6686c43a /drivers/video/metronomefb.c | |
parent | 6c5e51dae2c37127e00be392f40842e08077e96a (diff) |
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 <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/metronomefb.c')
-rw-r--r-- | drivers/video/metronomefb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
188 | epd_frame_table[par->dt].wfm_size = user_wfm_size; | 188 | epd_frame_table[par->dt].wfm_size = user_wfm_size; |
189 | 189 | ||
190 | if (size != epd_frame_table[par->dt].wfm_size) { | 190 | if (size != epd_frame_table[par->dt].wfm_size) { |
191 | dev_err(dev, "Error: unexpected size %d != %d\n", size, | 191 | dev_err(dev, "Error: unexpected size %Zd != %d\n", size, |
192 | epd_frame_table[par->dt].wfm_size); | 192 | epd_frame_table[par->dt].wfm_size); |
193 | return -EINVAL; | 193 | return -EINVAL; |
194 | } | 194 | } |