btrfs-progs: pretty print key in extent_item
authorDavid Sterba <dsterba@suse.cz>
Fri, 7 Sep 2012 15:02:16 +0000 (09:02 -0600)
committerroot <root@localhost.localdomain>
Thu, 4 Oct 2012 20:26:34 +0000 (16:26 -0400)
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
print-tree.c

index 89fc5b4..7c615dd 100644 (file)
@@ -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);