Subject: [PATCH -next] fb: metronome printk format warning

From: Randy Dunlap <[email-masked]>
Date: Thu, 21 Aug 2008 13:38:36 -0700

From: Randy Dunlap <[email-masked]>

Fix printk format warning:

linux-next-20080821/drivers/video/metronomefb.c:191: warning: format '%d' expects type 'int', but argument 4 has type 'size_t

Signed-off-by: Randy Dunlap <[email-masked]>
---
 drivers/video/metronomefb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20080821.orig/drivers/video/metronomefb.c
+++ linux-next-20080821/drivers/video/metronomefb.c
@@ -188,7 +188,7 @@ static int __devinit load_waveform(u8 *m
 		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 %zu != %d\n", size,
 					epd_frame_table[par->dt].wfm_size);
 		return -EINVAL;
 	}

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/