From: Dmitry V. Levin Date: Sun, 27 Nov 2016 14:19:09 +0000 (+0000) Subject: Change printargs to return RVAL_DECODED X-Git-Tag: v4.15~81 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37c4d4bcfcfe169e5adc2935168ef30aa565d771;p=strace 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. --- diff --git a/util.c b/util.c index e83f574a..f80fd6e9 100644 --- a/util.c +++ b/util.c @@ -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