public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] z2ram: fix printk format warning
@ 2009-09-05  0:20 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2009-09-05  0:20 UTC (permalink / raw)
  To: linux-m68k; +Cc: Geert Uytterhoeven, Roman Zippel

From: Randy Dunlap <randy.dunlap@oracle.com>

m68k:
drivers/block/z2ram.c:82: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/block/z2ram.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--- linux-2.6.31-rc8-git1.orig/drivers/block/z2ram.c
+++ linux-2.6.31-rc8-git1/drivers/block/z2ram.c
@@ -78,8 +78,10 @@ static void do_z2_request(struct request
 		int err = 0;
 
 		if (start + len > z2ram_size) {
-			printk( KERN_ERR DEVICE_NAME ": bad access: block=%lu, count=%u\n",
-				blk_rq_pos(req), blk_rq_cur_sectors(req));
+			printk( KERN_ERR DEVICE_NAME
+				": bad access: block=%llu, count=%u\n",
+				(unsigned long long)blk_rq_pos(req),
+				blk_rq_cur_sectors(req));
 			err = -EIO;
 			goto done;
 		}



---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-05  0:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-05  0:20 [PATCH] z2ram: fix printk format warning Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox