public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle•com>
To: Stephen Rothwell <sfr@canb•auug.org.au>,
	Jens Axboe <axboe@kernel•dk>,
	Alexander Viro <viro@zeniv•linux.org.uk>
Cc: linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>,
	linux-fsdevel@vger•kernel.org
Subject: [PATCH -next] fs/partitions: fix printk format warning
Date: Mon, 9 May 2011 10:38:26 -0700	[thread overview]
Message-ID: <20110509103826.58551948.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20110509152401.cc001ad6.sfr@canb.auug.org.au>

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

fs/partitions/check.c:263: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long long unsigned int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
---
 fs/partitions/check.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20110509.orig/fs/partitions/check.c
+++ linux-next-20110509/fs/partitions/check.c
@@ -257,7 +257,7 @@ ssize_t part_discard_alignment_show(stru
 	struct hd_struct *p = dev_to_part(dev);
 	struct gendisk *disk = dev_to_disk(dev);
 
-	return sprintf(buf, "%u\n",
+	return sprintf(buf, "%llu\n",
 		       (unsigned long long)queue_limit_discard_alignment(
 							&disk->queue->limits,
 							p->start_sect));

      reply	other threads:[~2011-05-09 17:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09  5:24 linux-next: Tree for May 9 Stephen Rothwell
2011-05-09 17:38 ` Randy Dunlap [this message]

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=20110509103826.58551948.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle$(echo .)com \
    --cc=axboe@kernel$(echo .)dk \
    --cc=linux-fsdevel@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=sfr@canb$(echo .)auug.org.au \
    --cc=viro@zeniv$(echo .)linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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