aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTom Rini2018-01-27 17:23:21 -0500
committerTom Rini2018-01-29 12:50:08 -0500
commitf39bfec230828a843bb53d0213709d47db1574df (patch)
tree6282bc11243fedf757ff2bd77d7aca0c7b652b78 /fs
parentc5e6e9b3d6a19631c7882a0d2f313f3d6c79c658 (diff)
fs: btrfs: Fix printf format character warning
When printing a size_t value we need to use %zu for portability between 32bit and 64bit targets. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Marek Behun <marek.behun@nic.cz>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 2529c2b3b6a..7e2528c4fb6 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -147,8 +147,8 @@ static int btrfs_check_super(struct btrfs_super_block *sb)
if (sb->sys_chunk_array_size < sizeof(struct btrfs_key) +
sizeof(struct btrfs_chunk)) {
- printf("%s: system chunk array too small %u < %lu\n", __func__,
- sb->sys_chunk_array_size, (u32) sizeof(struct btrfs_key)
+ printf("%s: system chunk array too small %u < %zu\n", __func__,
+ sb->sys_chunk_array_size, sizeof(struct btrfs_key)
+ sizeof(struct btrfs_chunk));
ret = -1;
}