ext4: fix printk format warning
authorAlexander Beregalov <a.beregalov@gmail.com>
Wed, 29 Oct 2008 21:13:08 +0000 (17:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 29 Oct 2008 21:13:08 +0000 (17:13 -0400)
fs/ext4/balloc.c:607: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64'
fs/ext4/inode.c:1822: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64'
fs/ext4/inode.c:1824: warning: format '%lld' expects type 'long long int', but argument 2 has type 's64'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/inode.c

index 38b3acf5683b2da37ac2ce639d9faea2ce4366df..152c390f3c3f816e8d42dd79638f48c3681fb234 100644 (file)
@@ -614,7 +614,7 @@ int ext4_has_free_blocks(struct ext4_sb_info *sbi, s64 nblocks)
                if (dirty_blocks < 0) {
                        printk(KERN_CRIT "Dirty block accounting "
                                        "went wrong %lld\n",
-                                       dirty_blocks);
+                                       (long long)dirty_blocks);
                }
        }
        /* Check whether we have space after
index 6702a49992a63e45aae49998e38c94b9723c7acc..5b088121686a75929e7e2ae337c5f777cee2de8b 100644 (file)
@@ -1831,9 +1831,9 @@ static void ext4_print_free_blocks(struct inode *inode)
                        ext4_count_free_blocks(inode->i_sb));
        printk(KERN_EMERG "Free/Dirty block details\n");
        printk(KERN_EMERG "free_blocks=%lld\n",
-                       percpu_counter_sum(&sbi->s_freeblocks_counter));
+                       (long long)percpu_counter_sum(&sbi->s_freeblocks_counter));
        printk(KERN_EMERG "dirty_blocks=%lld\n",
-                       percpu_counter_sum(&sbi->s_dirtyblocks_counter));
+                       (long long)percpu_counter_sum(&sbi->s_dirtyblocks_counter));
        printk(KERN_EMERG "Block reservation details\n");
        printk(KERN_EMERG "i_reserved_data_blocks=%lu\n",
                        EXT4_I(inode)->i_reserved_data_blocks);