btrfs: tree-checker: use %zu format string for size_t
authorArnd Bergmann <arnd@arndb.de>
Fri, 13 Oct 2017 09:27:35 +0000 (11:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:59 +0000 (12:27 +0100)
commit709a95c3eb21e3b53fa602d75031a89c7118f50b
tree5df2a79c7bd9912ef220fab8c8b829fb867ae30b
parent736cd52e0c720103f52ab9da47b6cc3af6b083f6
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>
fs/btrfs/tree-checker.c