]> granicus.if.org Git - strace/commitdiff
fallocate.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 13:53:38 +0000 (13:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 22:03:07 +0000 (22:03 +0000)
* fallocate.c (sys_fallocate): Update for RVAL_DECODED.

fallocate.c

index c096c9823d07b75e955323d1d1742c2cde29a58e..0b1cfec995e973f453906bf676b7fe82e26f50b3 100644 (file)
@@ -8,22 +8,21 @@
 
 SYS_FUNC(fallocate)
 {
-       if (entering(tcp)) {
-               int argn;
+       int argn;
 
-               /* fd */
-               printfd(tcp, tcp->u_arg[0]);
-               tprints(", ");
+       /* fd */
+       printfd(tcp, tcp->u_arg[0]);
+       tprints(", ");
 
-               /* mode */
-               printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
-               tprints(", ");
+       /* mode */
+       printflags(falloc_flags, tcp->u_arg[1], "FALLOC_FL_???");
+       tprints(", ");
 
-               /* offset */
-               argn = printllval(tcp, "%llu, ", 2);
+       /* offset */
+       argn = printllval(tcp, "%llu, ", 2);
 
-               /* len */
-               printllval(tcp, "%llu", argn);
-       }
-       return 0;
+       /* len */
+       printllval(tcp, "%llu", argn);
+
+       return RVAL_DECODED;
 }