From: Dmitry V. Levin Date: Thu, 16 Jul 2015 23:28:07 +0000 (+0000) Subject: swapon.c: make use of RVAL_DECODED X-Git-Tag: v4.11~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9afb4d06c07dab4ad556e17b6b81eddb859a24eb;p=strace swapon.c: make use of RVAL_DECODED * swapon.c (sys_swapon): Update for RVAL_DECODED. --- diff --git a/swapon.c b/swapon.c index 08b1f77f..5f6df0b8 100644 --- 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; }