[PATCH -next] fs/partitions: fix printk format warning

From: Randy Dunlap
Date: Mon May 09 2011 - 13:38:57 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

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@xxxxxxxxxx>
---
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));
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/