summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-01-07 15:25:48 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-01-07 15:25:48 -0500
commitba1efed4180fac77d3aaf61e8c4d8781fa0f6739 (patch)
tree4f4caa449e2bc3f80d7a7311ddd2eaa2bc3fdf2f
parent806528b8755f0586b4846d0ef29f2fec56662757 (diff)
btrfs_print_node: don't use btrfs_item_key_to_cpu on nodes
-rw-r--r--print-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-tree.c b/print-tree.c
index 6173503a..db463395 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -227,7 +227,7 @@ void btrfs_print_tree(struct btrfs_root *root, struct extent_buffer *eb)
size = btrfs_level_size(root, btrfs_header_level(eb) - 1);
for (i = 0; i < nr; i++) {
u64 blocknr = btrfs_node_blockptr(eb, i);
- btrfs_item_key_to_cpu(eb, &key, i);
+ btrfs_node_key_to_cpu(eb, &key, i);
printf("\tkey %d (%llu %x %llu) block %llu (%llu) gen %llu\n",
i,
(unsigned long long)key.objectid,