diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-13 12:27:35 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-10-30 14:27:59 +0300 |
commit | 709a95c3eb21e3b53fa602d75031a89c7118f50b (patch) | |
tree | 5df2a79c7bd9912ef220fab8c8b829fb867ae30b /fs/btrfs/tree-checker.c | |
parent | 736cd52e0c720103f52ab9da47b6cc3af6b083f6 (diff) | |
download | linux-709a95c3eb21e3b53fa602d75031a89c7118f50b.tar.xz |
btrfs: tree-checker: use %zu format string for size_t
We now get a harmless compile-time on 32-bit architectures:
fs/btrfs/tree-checker.c: In function 'check_extent_data_item':
fs/btrfs/tree-checker.c:189:70: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Werror=format=]
This changes the format string to use %zu instead of %lu for size_t.
Fixes: c1f6520bf360 ("btrfs: tree-checker: Enhance output for check_extent_data_item")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/tree-checker.c')
-rw-r--r-- | fs/btrfs/tree-checker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c index 0de114179676..114fc5f0ecc5 100644 --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -182,7 +182,7 @@ static int check_extent_data_item(struct btrfs_root *root, /* Regular or preallocated extent has fixed item size */ if (item_size != sizeof(*fi)) { file_extent_err(root, leaf, slot, - "invalid item size for reg/prealloc file extent, have %u expect %lu", + "invalid item size for reg/prealloc file extent, have %u expect %zu", item_size, sizeof(*fi)); return -EUCLEAN; } |