Searched hist:"7 cfad65297bfe0aa2996cd72d21c898aa84436d9" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | tree-checker.c | diff 7cfad65297bfe0aa2996cd72d21c898aa84436d9 Wed Dec 06 08:18:14 CST 2017 Arnd Bergmann <arnd@arndb.de> btrfs: tree-checker: use %zu format string for size_t
The return value of sizeof() is of type size_t, so we must print it using the %z format modifier rather than %l to avoid this warning on some architectures:
fs/btrfs/tree-checker.c: In function 'check_dir_item': fs/btrfs/tree-checker.c:273:50: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Werror=format=]
Fixes: 005887f2e3e0 ("btrfs: tree-checker: Add checker for dir item") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|