aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-02-14 07:10:22 -0500
committerDavid Sterba <dsterba@suse.cz>2015-02-16 12:48:44 -0500
commit41d6b13ea7b459cd51d4446c9b264128a52db993 (patch)
tree94d0dc86d644275c229fa23168a64064ea62af00 /fs/btrfs/disk-io.c
parent08da757d3f29e9d33480ae1c44b557a2514d70c5 (diff)
btrfs: fix sizeof format specifier in btrfs_check_super_valid()
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 83671f847c7c..6911aa4caa0d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3923,7 +3923,7 @@ static int btrfs_check_super_valid(struct btrfs_fs_info *fs_info,
3923 } 3923 }
3924 if (btrfs_super_sys_array_size(sb) < sizeof(struct btrfs_disk_key) 3924 if (btrfs_super_sys_array_size(sb) < sizeof(struct btrfs_disk_key)
3925 + sizeof(struct btrfs_chunk)) { 3925 + sizeof(struct btrfs_chunk)) {
3926 printk(KERN_ERR "BTRFS: system chunk array too small %u < %lu\n", 3926 printk(KERN_ERR "BTRFS: system chunk array too small %u < %zu\n",
3927 btrfs_super_sys_array_size(sb), 3927 btrfs_super_sys_array_size(sb),
3928 sizeof(struct btrfs_disk_key) 3928 sizeof(struct btrfs_disk_key)
3929 + sizeof(struct btrfs_chunk)); 3929 + sizeof(struct btrfs_chunk));