+
+ tprintf(", iov_len=%" PRI_klu "}", iov[1]);
+
+ return true;
+}
+
+/*
+ * data_size limits the cumulative size of printed data.
+ * Example: recvmsg returing a short read.
+ */
+void
+tprint_iov_upto(struct tcb *const tcp, const kernel_ulong_t len,
+ const kernel_ulong_t addr, const enum iov_decode decode_iov,
+ const kernel_ulong_t data_size)
+{
+ kernel_ulong_t iov[2];
+ struct print_iovec_config config =
+ { .decode_iov = decode_iov, .data_size = data_size };
+
+ print_array(tcp, addr, len, iov, current_wordsize * 2,
+ umoven_or_printaddr_ignore_syserror, print_iovec, &config);