lkml.org 
[lkml]   [2011]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] fs/partitions: fix printk format warning
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));

\
 
 \ /
  Last update: 2011-05-09 19:41    [W:0.052 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site