Change printargs to return RVAL_DECODED

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.
This commit is contained in:
2016-11-27 14:19:09 +00:00
parent 88017cbae8
commit 37c4d4bcfc

12
util.c
View File

@ -1504,13 +1504,11 @@ getarg_ull(struct tcb *tcp, int argn)
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