From: Dmitry V. Levin Date: Wed, 15 Jul 2015 08:29:56 +0000 (+0000) Subject: utime.c: make use of RVAL_DECODED X-Git-Tag: v4.11~453 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d51f439461ca720cf9cd5a731a7e09ac55887d0;p=strace utime.c: make use of RVAL_DECODED * utime.c (sys_utime): Update for RVAL_DECODED. --- diff --git a/utime.c b/utime.c index 4626c919..b21c799c 100644 --- a/utime.c +++ b/utime.c @@ -9,24 +9,23 @@ SYS_FUNC(utime) } u; unsigned wordsize; - if (entering(tcp)) { - printpath(tcp, tcp->u_arg[0]); - tprints(", "); + printpath(tcp, tcp->u_arg[0]); + tprints(", "); - wordsize = current_wordsize; - if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u)) - ; - else if (wordsize == sizeof u.utl[0]) { - tprintf("[%s,", sprinttime(u.utl[0])); - tprintf(" %s]", sprinttime(u.utl[1])); - } - else if (wordsize == sizeof u.uti[0]) { - tprintf("[%s,", sprinttime(u.uti[0])); - tprintf(" %s]", sprinttime(u.uti[1])); - } - else - tprintf("", - wordsize); + wordsize = current_wordsize; + if (umoven_or_printaddr(tcp, tcp->u_arg[1], 2 * wordsize, &u)) + ; + else if (wordsize == sizeof u.utl[0]) { + tprintf("[%s,", sprinttime(u.utl[0])); + tprintf(" %s]", sprinttime(u.utl[1])); } - return 0; + else if (wordsize == sizeof u.uti[0]) { + tprintf("[%s,", sprinttime(u.uti[0])); + tprintf(" %s]", sprinttime(u.uti[1])); + } + else + tprintf("", + wordsize); + + return RVAL_DECODED; }