]> granicus.if.org Git - strace/commitdiff
Fix printing of invalid flags argument of perf_event_open syscall
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 23:19:23 +0000 (23:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 23:48:05 +0000 (23:48 +0000)
* numa.c (SYS_FUNC(perf_event_open)): Print 5th argument of syscall
using printflags_long.

perf.c

diff --git a/perf.c b/perf.c
index f91b9d3ed2bced4ad803189939c307d0fe2e4efa..8ab58a0e88a7b555a13ccd7cc093345043aaa5cf 100644 (file)
--- a/perf.c
+++ b/perf.c
@@ -41,7 +41,7 @@ SYS_FUNC(perf_event_open)
                (int) tcp->u_arg[1],
                (int) tcp->u_arg[2],
                (int) tcp->u_arg[3]);
-       printflags(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
+       printflags_long(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
 
        return RVAL_DECODED | RVAL_FD;
 }