]> granicus.if.org Git - strace/commitdiff
lseek.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 19 Jul 2015 23:58:13 +0000 (23:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 01:42:01 +0000 (01:42 +0000)
* lseek.c (sys_lseek): Update for RVAL_DECODED.

lseek.c

diff --git a/lseek.c b/lseek.c
index 4625d9872488f8bbe9253cbf9884a4211d715d5e..f02158e71ada5f11097c85d2c0bb851137071e63 100644 (file)
--- 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