From: Dmitry V. Levin Date: Sun, 19 Jul 2015 23:58:13 +0000 (+0000) Subject: lseek.c: make use of RVAL_DECODED X-Git-Tag: v4.11~390 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed88a506309c5439c9a144190b57c1b256d238a8;p=strace lseek.c: make use of RVAL_DECODED * lseek.c (sys_lseek): Update for RVAL_DECODED. --- diff --git a/lseek.c b/lseek.c index 4625d987..f02158e7 100644 --- a/lseek.c +++ b/lseek.c @@ -15,17 +15,16 @@ SYS_FUNC(lseek) long long offset; int whence; - if (entering(tcp)) { - printfd(tcp, tcp->u_arg[0]); - offset = tcp->ext_arg[1]; - whence = tcp->u_arg[2]; - if (whence == SEEK_SET) - tprintf(", %llu, ", offset); - else - tprintf(", %lld, ", offset); - printxval(whence_codes, whence, "SEEK_???"); - } - return RVAL_LUDECIMAL; + printfd(tcp, tcp->u_arg[0]); + offset = tcp->ext_arg[1]; + whence = tcp->u_arg[2]; + if (whence == SEEK_SET) + tprintf(", %llu, ", offset); + else + tprintf(", %lld, ", offset); + printxval(whence_codes, whence, "SEEK_???"); + + return RVAL_DECODED | RVAL_LUDECIMAL; } #else SYS_FUNC(lseek) @@ -33,17 +32,16 @@ SYS_FUNC(lseek) long offset; int whence; - if (entering(tcp)) { - printfd(tcp, tcp->u_arg[0]); - offset = tcp->u_arg[1]; - whence = tcp->u_arg[2]; - if (whence == SEEK_SET) - tprintf(", %lu, ", offset); - else - tprintf(", %ld, ", offset); - printxval(whence_codes, whence, "SEEK_???"); - } - return RVAL_UDECIMAL; + printfd(tcp, tcp->u_arg[0]); + offset = tcp->u_arg[1]; + whence = tcp->u_arg[2]; + if (whence == SEEK_SET) + tprintf(", %lu, ", offset); + else + tprintf(", %ld, ", offset); + printxval(whence_codes, whence, "SEEK_???"); + + return RVAL_DECODED | RVAL_UDECIMAL; } #endif