From 6fa19b04d9bcf71131ba7969a9f43a63dd1960aa Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 3 Jun 2009 12:04:41 -0400 Subject: Fix printf format casting errors There are still some warnings of the form: format '%llu' expects type 'long long unsigned int' but argument has type 'u64' In conjunction with -Werror, this is causing some build failures. Now they're properly casted, avoiding compiler warnings. Signed-off-by: Luca Bruno Signed-off-by: Chris Mason --- print-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'print-tree.c') diff --git a/print-tree.c b/print-tree.c index cd21de1d..86033cf3 100644 --- a/print-tree.c +++ b/print-tree.c @@ -71,7 +71,7 @@ static int print_inode_ref_item(struct extent_buffer *eb, struct btrfs_item *ite len = (name_len <= sizeof(namebuf))? name_len: sizeof(namebuf); read_extent_buffer(eb, namebuf, (unsigned long)(ref + 1), len); printf("\t\tinode ref index %llu namelen %u name: %.*s\n", - index, name_len, len, namebuf); + (unsigned long long)index, name_len, len, namebuf); len = sizeof(*ref) + name_len; ref = (struct btrfs_inode_ref *)((char *)ref + len); cur += len; -- cgit v1.2.3