summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2012-09-07 09:02:16 -0600
committerroot <root@localhost.localdomain>2012-10-04 16:26:34 -0400
commitbc130ecd0260e4ee6ffe07ae43fc90db281a4daa (patch)
tree806a2c3ed90b4f615bb032942e1ce4055b68cce0
parent6500965277e92858e03c405c0fec74124fec84dd (diff)
btrfs-progs: pretty print key in extent_item
Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
-rw-r--r--print-tree.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/print-tree.c b/print-tree.c
index 89fc5b46..7c615dd2 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -205,11 +205,9 @@ static void print_extent_item(struct extent_buffer *eb, int slot)
struct btrfs_tree_block_info *info;
info = (struct btrfs_tree_block_info *)(ei + 1);
btrfs_tree_block_key(eb, info, &key);
- printf("\t\ttree block key (%llu %x %llu) level %d\n",
- (unsigned long long)btrfs_disk_key_objectid(&key),
- key.type,
- (unsigned long long)btrfs_disk_key_offset(&key),
- btrfs_tree_block_level(eb, info));
+ printf("\t\ttree block ");
+ btrfs_print_key(&key);
+ printf(" level %d\n", btrfs_tree_block_level(eb, info));
iref = (struct btrfs_extent_inline_ref *)(info + 1);
} else {
iref = (struct btrfs_extent_inline_ref *)(ei + 1);