fanotify: use print_xlat_d

* fanotify.c (SYS_FUNC(fanotify_mark)): Use print_xlat_d for printing
FAN_NOFD named constant.
This commit is contained in:
Eugene Syromyatnikov 2018-03-10 06:17:31 +01:00 committed by Dmitry V. Levin
parent bda859a94e
commit 966da001af

View File

@ -75,10 +75,12 @@ SYS_FUNC(fanotify_mark)
#endif
printflags64(fan_event_flags, mask, "FAN_???");
tprints(", ");
if ((int) tcp->u_arg[argn] == FAN_NOFD)
tprints("FAN_NOFD, ");
else
if ((int) tcp->u_arg[argn] == FAN_NOFD) {
print_xlat_d(FAN_NOFD);
tprints(", ");
} else {
print_dirfd(tcp, tcp->u_arg[argn]);
}
printpath(tcp, tcp->u_arg[argn + 1]);
return RVAL_DECODED;