strace: Only print the first 8 iovecs.

Same limit as other array printers in this file.
This commit is contained in:
Augustin Cavalier
2024-07-16 18:43:50 -04:00
parent 0fbd5c96af
commit ef62eb6117
+4
View File
@@ -69,6 +69,10 @@ format_iovecs(Context &context, const iovec *iov, int iovlen)
for (int i = 0; i < iovlen; i++) {
if (i > 0)
r += ", ";
if (i >= 8) {
r += "...";
break;
}
r += "{iov_base=" + context.FormatPointer(vecs[i].iov_base);
r += ", iov_len=" + context.FormatUnsigned(vecs[i].iov_len);
r += "}";