btrfs.c: fix BTRFS_IOC_TREE_SEARCH_V2 output
* btrfs.c (btrfs_ioctl): Fix BTRFS_IOC_TREE_SEARCH_V2 output
in case of EOVERFLOW and failed umove.
diff --git a/btrfs.c b/btrfs.c
index 5a4c76f..4c02b89 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -1154,9 +1154,10 @@
tprints(", ");
else if (syserror(tcp)) {
if (tcp->u_error == EOVERFLOW) {
+ tprints(" => ");
tcp->u_error = 0;
if (!umove_or_printaddr(tcp, arg, &args))
- tprintf(" => {buf_size=%" PRIu64 "}",
+ tprintf("{buf_size=%" PRIu64 "}",
(uint64_t)args.buf_size);
tcp->u_error = EOVERFLOW;
}