strace/sync_file_range.c
Dmitry V. Levin 69c1c4e46a sync_file_range2: fix typo in flags decoding
* sync_file_range.c (sys_sync_file_range2): Fix typo in flags decoding.
2015-07-16 23:44:57 +00:00

32 lines
595 B
C

#include "defs.h"
#include <fcntl.h>
#include "xlat/sync_file_range_flags.h"
SYS_FUNC(sync_file_range)
{
int argn;
printfd(tcp, tcp->u_arg[0]);
argn = printllval(tcp, ", %lld, ", 1);
argn = printllval(tcp, "%lld, ", argn);
printflags(sync_file_range_flags, tcp->u_arg[argn],
"SYNC_FILE_RANGE_???");
return RVAL_DECODED;
}
SYS_FUNC(sync_file_range2)
{
int argn;
printfd(tcp, tcp->u_arg[0]);
printflags(sync_file_range_flags, tcp->u_arg[1],
"SYNC_FILE_RANGE_???");
argn = printllval(tcp, ", %lld, ", 2);
argn = printllval(tcp, "%lld, ", argn);
return RVAL_DECODED;
}