]> granicus.if.org Git - strace/blob - swapon.c
Fix decoding and dumping of readv syscall in case of short read
[strace] / swapon.c
1 #include "defs.h"
2
3 #include <sys/swap.h>
4
5 #include "xlat/swap_flags.h"
6
7 SYS_FUNC(swapon)
8 {
9         int flags = tcp->u_arg[1];
10
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 RVAL_DECODED;
19 }