* desc.c (epollflags): Define.
(sys_epoll_create1): Use epollflags to printflags. Change "O" to "EPOLL".

Reported-by: Марк Коренберг <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
---
 desc.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/desc.c b/desc.c
index fad6cfe..ee9aacc 100644
--- a/desc.c
+++ b/desc.c
@@ -694,11 +694,21 @@ sys_epoll_create(struct tcb *tcp)
        return 0;
 }
 
+static const struct xlat epollflags[] = {
+#ifdef EPOLL_CLOEXEC
+       { EPOLL_CLOEXEC,        "EPOLL_CLOEXEC" },
+#endif
+#ifdef EPOLL_NONBLOCK
+       { EPOLL_NONBLOCK,       "EPOLL_NONBLOCK"        },
+#endif
+       { 0,            NULL            }
+};
+
 int
 sys_epoll_create1(struct tcb *tcp)
 {
        if (entering(tcp))
-               printflags(open_mode_flags, tcp->u_arg[0], "O_???");
+               printflags(epollflags, tcp->u_arg[0], "EPOLL_???");
        return 0;
 }
 
-- 
1.7.6.1


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to