]> granicus.if.org Git - strace/commitdiff
swapon.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 23:28:07 +0000 (23:28 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Jul 2015 23:44:57 +0000 (23:44 +0000)
* swapon.c (sys_swapon): Update for RVAL_DECODED.

swapon.c

index 08b1f77f8302c46aa3705e01f987a00251b5ae21..5f6df0b853177ed1ef97ac83af19f6fe15e161c0 100644 (file)
--- a/swapon.c
+++ b/swapon.c
@@ -6,14 +6,14 @@
 
 SYS_FUNC(swapon)
 {
-       if (entering(tcp)) {
-               int flags = tcp->u_arg[1];
-               printpath(tcp, tcp->u_arg[0]);
-               tprints(", ");
-               printflags(swap_flags, flags & ~SWAP_FLAG_PRIO_MASK,
-                       "SWAP_FLAG_???");
-               if (flags & SWAP_FLAG_PREFER)
-                       tprintf("|%d", flags & SWAP_FLAG_PRIO_MASK);
-       }
-       return 0;
+       int flags = tcp->u_arg[1];
+
+       printpath(tcp, tcp->u_arg[0]);
+       tprints(", ");
+       printflags(swap_flags, flags & ~SWAP_FLAG_PRIO_MASK,
+               "SWAP_FLAG_???");
+       if (flags & SWAP_FLAG_PREFER)
+               tprintf("|%d", flags & SWAP_FLAG_PRIO_MASK);
+
+       return RVAL_DECODED;
 }