sendmsg: do not decode msghdr in non-verbose mode
* net.c (printmsghdr): Do not decode struct msghdr in non-verbose mode.
diff --git a/net.c b/net.c
index bba0375..875354b 100644
--- a/net.c
+++ b/net.c
@@ -604,7 +604,7 @@
{
struct msghdr msg;
- if (extractmsghdr(tcp, addr, &msg))
+ if (verbose(tcp) && extractmsghdr(tcp, addr, &msg))
do_msghdr(tcp, &msg, data_size);
else
tprintf("%#lx", addr);
@@ -949,7 +949,7 @@
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
} else {
- if (syserror(tcp) || !verbose(tcp))
+ if (syserror(tcp))
tprintf("%#lx", tcp->u_arg[1]);
else
printmsghdr(tcp, tcp->u_arg[1], tcp->u_rval);