fanotify.c: make use of RVAL_DECODED

* fanotify.c (sys_fanotify_init, sys_fanotify_mark): Update
for RVAL_DECODED.
This commit is contained in:
Дмитрий Левин 2015-07-20 13:58:09 +00:00
parent f891bb4373
commit a3a7ffee58

View File

@ -14,9 +14,6 @@ SYS_FUNC(fanotify_init)
{
unsigned flags;
if (exiting(tcp))
return 0;
flags = tcp->u_arg[0];
printxval(fan_classes, flags & FAN_ALL_CLASS_BITS, "FAN_CLASS_???");
flags &= ~FAN_ALL_CLASS_BITS;
@ -27,7 +24,7 @@ SYS_FUNC(fanotify_init)
tprints(", ");
tprint_open_modes((unsigned) tcp->u_arg[1]);
return 0;
return RVAL_DECODED;
}
#include "xlat/fan_mark_flags.h"
@ -38,9 +35,6 @@ SYS_FUNC(fanotify_mark)
unsigned long long mask = 0;
int argn;
if (exiting(tcp))
return 0;
printfd(tcp, tcp->u_arg[0]);
tprints(", ");
printflags(fan_mark_flags, (unsigned) tcp->u_arg[1], "FAN_MARK_???");
@ -62,5 +56,5 @@ SYS_FUNC(fanotify_mark)
print_dirfd(tcp, tcp->u_arg[argn]);
printpath(tcp, tcp->u_arg[argn + 1]);
return 0;
return RVAL_DECODED;
}