]> granicus.if.org Git - strace/commitdiff
Fix printing of invalid 3rd argument of fcntl/fcntl64 syscall
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:52:04 +0000 (22:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 22:52:04 +0000 (22:52 +0000)
* fcntl.c (print_fcntl): Print 3rd argument of F_NOTIFY, F_SETLEASE, and
F_ADD_SEALS operations using printflags_long.

fcntl.c

diff --git a/fcntl.c b/fcntl.c
index e446a1c6cf2d8059b72e5e7f6c94df7ec6c912d6..bfe8b1458d20f3514f22c8a1ec395ebd001141b2 100644 (file)
--- a/fcntl.c
+++ b/fcntl.c
@@ -122,15 +122,15 @@ print_fcntl(struct tcb *tcp)
                break;
        case F_NOTIFY:
                tprints(", ");
-               printflags(notifyflags, tcp->u_arg[2], "DN_???");
+               printflags_long(notifyflags, tcp->u_arg[2], "DN_???");
                break;
        case F_SETLEASE:
                tprints(", ");
-               printxval(lockfcmds, tcp->u_arg[2], "F_???");
+               printxval_long(lockfcmds, tcp->u_arg[2], "F_???");
                break;
        case F_ADD_SEALS:
                tprints(", ");
-               printflags(f_seals, tcp->u_arg[2], "F_SEAL_???");
+               printflags_long(f_seals, tcp->u_arg[2], "F_SEAL_???");
                break;
        case F_SETSIG:
                tprints(", ");