Tsutomu Itoh
2011-Nov-01 03:20 UTC
[PATCH] Btrfs-progs: fix compiler warning of extent-tree.c
In recovery-beta, following compiler warning was displayed. gcc -Wp,-MMD,./.extent-tree.o.d,-MT,extent-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -O0 -c extent-tree.c extent-tree.c: In function ''lookup_inline_extent_backref'': extent-tree.c:1071: warning: format ''%u'' expects type ''unsigned int'', but argument 3 has type ''long unsigned int'' Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com> --- extent-tree.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/extent-tree.c b/extent-tree.c index 5bed3c2..5144d57 100644 --- a/extent-tree.c +++ b/extent-tree.c @@ -1068,7 +1068,7 @@ static int lookup_inline_extent_backref(struct btrfs_trans_handle *trans, #endif if (item_size < sizeof(*ei)) { printf("Size is %u, needs to be %u, slot %d\n", item_size, - sizeof(*ei), path->slots[0]); + (u32)sizeof(*ei), path->slots[0]); btrfs_print_leaf(root, leaf); return -EINVAL; } -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html