From 848e8528841a5c01350c15703f8820a5279019ea Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 4 Mar 2020 20:35:14 +0100 Subject: [PATCH] btrfs-progs: fix build of quick-test Update calls to print tree. Signed-off-by: David Sterba --- quick-test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quick-test.c b/quick-test.c index b1440425..c7a4bb2d 100644 --- a/quick-test.c +++ b/quick-test.c @@ -94,7 +94,7 @@ int main(int ac, char **av) { fprintf(stderr, "search %d:%d\n", num, i); ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0); if (ret) { - btrfs_print_tree(root->node, 1); + btrfs_print_tree(root->node, 1, BTRFS_PRINT_TREE_BFS); printf("unable to find %d\n", num); exit(1); } @@ -171,7 +171,7 @@ int main(int ac, char **av) { fprintf(stderr, "search %d:%d\n", num, i); ret = btrfs_search_slot(NULL, root, &ins, &path, 0, 0); if (ret) { - btrfs_print_tree(root->node, 1); + btrfs_print_tree(root->node, 1, BTRFS_PRINT_TREE_BFS); printf("unable to find %d\n", num); exit(1); } @@ -220,7 +220,7 @@ int main(int ac, char **av) { btrfs_commit_transaction(trans, root); printf("tree size is now %d\n", tree_size); printf("root %p commit root %p\n", root->node, root->commit_root); - btrfs_print_tree(root->node, 1); + btrfs_print_tree(root->node, 1, BTRFS_PRINT_TREE_BFS); close_ctree(root); return 0; }