Skip to contentSkip to conversation

fs/ext4/super.c: fix printk warning

PATCH In review [email protected] 2 participants 2 messages Dec 22, 2009 – Dec 23, 2009 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/ext4/super.c: fix printk warning

From: Andrew Morton <[email protected]>

sparc64 allmodconfig:

fs/ext4/super.c: In function `lifetime_write_kbytes_show':
fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4) fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)

---

 fs/ext4/super.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/ext4/super.c renamed from fs/ext4/super.c~fs-ext4-superc-fix-printk-warning +2 -2
diff -puN fs/ext4/super.c~fs-ext4-superc-fix-printk-warning fs/ext4/super.c
@@ -2174,9 +2174,9 @@ static ssize_t lifetime_write_kbytes_sho
 	struct super_block *sb = sbi->s_buddy_cache->i_sb;
 
 	return snprintf(buf, PAGE_SIZE, "%llu\n",
-			sbi->s_kbytes_written + 
+			(unsigned long long)(sbi->s_kbytes_written +
 			((part_stat_read(sb->s_bdev->bd_part, sectors[1]) -
-			  EXT4_SB(sb)->s_sectors_written_start) >> 1));
+			  EXT4_SB(sb)->s_sectors_written_start) >> 1)));
 }
 
 static ssize_t inode_readahead_blks_store(struct ext4_attr *a,

_

#1 lore raw
Quoted 10 lines · On Mon, Dec 21, 2009 at 04:25:42PM -0800, [email protected] wrote:

From: Andrew Morton <[email protected]>

sparc64 allmodconfig:

fs/ext4/super.c: In function `lifetime_write_kbytes_show':
fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4) fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)

Thanks, added to the ext4 tree.

- Ted