From: Tom Rini Date: Sat, 27 Jan 2018 22:23:21 +0000 (-0500) Subject: fs: btrfs: Fix printf format character warning X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=f39bfec230828a843bb53d0213709d47db1574df;p=u-boot.git 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 Reviewed-by: Marek Behun --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 2529c2b3b6..7e2528c4fb 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; }