public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-m68k@vger.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Roman Zippel <zippel@linux-m68k.org>
Subject: [PATCH] z2ram: fix printk format warning
Date: Fri, 4 Sep 2009 17:20:32 -0700	[thread overview]
Message-ID: <20090904172032.bfb76edb.randy.dunlap@oracle.com> (raw)

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/

                 reply	other threads:[~2009-09-05  0:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090904172032.bfb76edb.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=zippel@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox