]> granicus.if.org Git - strace/commitdiff
fanotify.c: make use of RVAL_DECODED
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 13:58:09 +0000 (13:58 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 20 Jul 2015 22:03:07 +0000 (22:03 +0000)
* fanotify.c (sys_fanotify_init, sys_fanotify_mark): Update
for RVAL_DECODED.

fanotify.c

index 8ceca0e47db870e4102ee754906b658e88e020cb..1c3b7f26f65434145323d2b2406a1ea6b11df232 100644 (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;
 }