[PATCH 3/5] tests/btrfs.c: fix live btrfs_test_search_ioctls output
jeffm at suse.com
jeffm at suse.com
Fri May 27 03:33:05 UTC 2016
From: Jeff Mahoney <jeffm at 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
More information about the Strace-devel
mailing list