]> git.hungrycats.org Git - linux/commitdiff
btrfs: fix sizeof format specifier in btrfs_check_super_valid()
authorFabian Frederick <fabf@skynet.be>
Sat, 14 Feb 2015 12:10:22 +0000 (13:10 +0100)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:31:06 +0000 (23:31 -0400)
This patch fixes mips compilation warning:

fs/btrfs/disk-io.c: In function 'btrfs_check_super_valid':
fs/btrfs/disk-io.c:3927:21: warning: format '%lu' expects argument
of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat]

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit 41d6b13ea7b459cd51d4446c9b264128a52db993)

fs/btrfs/disk-io.c

index 99ec4a2f173174f680c0a274e30f48cad4558fc0..5ed218e9945016c664eeb5ef4aca95e54f8c1186 100644 (file)
@@ -3924,7 +3924,7 @@ static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info,
        }
        if (btrfs_super_sys_array_size(sb) < sizeof(struct btrfs_disk_key)
                        + sizeof(struct btrfs_chunk)) {
-               printk(KERN_ERR "BTRFS: system chunk array too small %u < %lu\n",
+               printk(KERN_ERR "BTRFS: system chunk array too small %u < %zu\n",
                                btrfs_super_sys_array_size(sb),
                                sizeof(struct btrfs_disk_key)
                                + sizeof(struct btrfs_chunk));