strace/swapon.c
Dmitry V. Levin 9afb4d06c0 swapon.c: make use of RVAL_DECODED
* swapon.c (sys_swapon): Update for RVAL_DECODED.
2015-07-16 23:44:57 +00:00

20 lines
345 B
C

#include "defs.h"
#include <sys/swap.h>
#include "xlat/swap_flags.h"
SYS_FUNC(swapon)
{
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;
}