We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bae23 commit 9afb4d0Copy full SHA for 9afb4d0
swapon.c
@@ -6,14 +6,14 @@
6
7
SYS_FUNC(swapon)
8
{
9
- if (entering(tcp)) {
10
- int flags = tcp->u_arg[1];
11
- printpath(tcp, tcp->u_arg[0]);
12
- tprints(", ");
13
- printflags(swap_flags, flags & ~SWAP_FLAG_PRIO_MASK,
14
- "SWAP_FLAG_???");
15
- if (flags & SWAP_FLAG_PREFER)
16
- tprintf("|%d", flags & SWAP_FLAG_PRIO_MASK);
17
- }
18
- 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;
19
}
0 commit comments