path: root/extent-tree.c
diff options
authorAnton Blanchard <>2011-04-07 21:02:04 +1000
committerChris Mason <>2011-10-25 09:18:57 -0400
commitfa81a569ac5e4ca426cd8e3fc8a0f181c58a8fae (patch)
treee980b0ee1e50208622f6ca63a37814ff9933397e /extent-tree.c
parentfcdc0929c6ea051dad59818210df53fd03eaf4b1 (diff)
btrfs-progs: cast u64 to long long to avoid printf warnings
When building on ppc64 I hit a number of warnings in printf: btrfs-map-logical.c:69: error: format ‘%Lu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’ Fix them. Signed-off-by: Anton Blanchard <> Signed-off-by: Hugo Mills <>
Diffstat (limited to 'extent-tree.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/extent-tree.c b/extent-tree.c
index ebec166b..88c67d6f 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -1448,7 +1448,8 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
goto out;
if (ret != 0) {
btrfs_print_leaf(root, path->nodes[0]);
- printk("failed to find block number %Lu\n", bytenr);
+ printk("failed to find block number %Lu\n",
+ (unsigned long long)bytenr);