From: Jeff Mahoney <je...@suse.com>

* tests/btrfs.c (btrfs_test_search_ioctls): use print_tree_search_buf
  for BTRFS_IOC_TREE_SEARCH and fix missing whitespace
---
 tests/btrfs.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/btrfs.c b/tests/btrfs.c
index d2b1637..f1dee55 100644
--- a/tests/btrfs.c
+++ b/tests/btrfs.c
@@ -941,8 +941,11 @@ btrfs_test_search_ioctls(void)
                        btrfs_test_dir_fd);
                btrfs_print_search_key(&search_args.key);
                ioctl(btrfs_test_dir_fd, BTRFS_IOC_TREE_SEARCH, &search_args);
-               printf("} => {key={nr_items=%u}, buf=...}) = 0\n",
+               printf("} => {key={nr_items=%u}, buf=",
                        search_args.key.nr_items);
+               btrfs_print_tree_search_buf(&search_args.key, search_args.buf,
+                                           sizeof(search_args.buf));
+               printf("}) = 0\n");
 
                args = malloc(sizeof(*args) + bufsize);
                if (!args)
@@ -968,7 +971,7 @@ btrfs_test_search_ioctls(void)
                btrfs_print_search_key(&args->key);
                printf(", buf_size=%" PRIu64 "}", (uint64_t)args->buf_size);
                ioctl(btrfs_test_dir_fd, BTRFS_IOC_TREE_SEARCH_V2, args);
-               printf("=> {buf_size=%" PRIu64 "}) = -1 EOVERFLOW (%m)\n",
+               printf(" => {buf_size=%" PRIu64 "}) = -1 EOVERFLOW (%m)\n",
                        (uint64_t)args->buf_size);
                free(args);
        }
-- 
2.7.1


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to