As printargs is invoked as a generic syscall decoder only and
it is not supposed to print anything on exiting, change printargs
to return RVAL_DECODED so it would not be called on exiting at all.
* util.c (printargs): Print args unconditionally, return RVAL_DECODED.
int
printargs(struct tcb *tcp)
{
- if (entering(tcp)) {
- int i;
- int n = tcp->s_ent->nargs;
- for (i = 0; i < n; i++)
- tprintf("%s%#llx", i ? ", " : "", getarg_ull(tcp, i));
- }
- return 0;
+ const int n = tcp->s_ent->nargs;
+ int i;
+ for (i = 0; i < n; ++i)
+ tprintf("%s%#llx", i ? ", " : "", getarg_ull(tcp, i));
+ return RVAL_DECODED;
}
int