swapon.c: make use of RVAL_DECODED
* swapon.c (sys_swapon): Update for RVAL_DECODED.
This commit is contained in:
parent
63bae232d2
commit
9afb4d06c0
20
swapon.c
20
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user