summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-13 09:28:32 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-13 09:28:32 -0400
commit3192451f581feeefd720f173cf9c80b268049102 (patch)
treea32ad55082422cddd0e98c1aacfd9ff58ba4793e /print-tree.c
parentf6a88938c6ccc1c3d7398764bcbc4e08c2cb6738 (diff)
node->blockptrs endian fixes
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tree.c b/print-tree.c
index 33f5ee40..101278e1 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -54,12 +54,12 @@ void print_tree(struct ctree_root *root, struct tree_buffer *t)
printf("\tkey %d (%Lu %u %Lu) block %Lu\n",
i,
c->keys[i].objectid, c->keys[i].flags, c->keys[i].offset,
- c->blockptrs[i]);
+ btrfs_node_blockptr(c, i));
fflush(stdout);
}
for (i = 0; i < nr; i++) {
struct tree_buffer *next_buf = read_tree_block(root,
- c->blockptrs[i]);
+ btrfs_node_blockptr(c, i));
struct node *next = &next_buf->node;
if (btrfs_is_leaf(next) &&
btrfs_header_level(&c->header) != 1)