]> granicus.if.org Git - strace/commitdiff
Fix epoll_wait and epoll_pwait decoding
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Oct 2011 16:05:57 +0000 (16:05 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Oct 2011 16:05:57 +0000 (16:05 +0000)
* desc.c (epoll_wait_common): Print "maxevents" and "timeout" arguments
as integers.

Reported-by: Марк Коренберг <socketpair@gmail.com>
desc.c

diff --git a/desc.c b/desc.c
index 486acfbc335b598b503f162ff974e5f8a4d2c060..fad6cfed553ff909010f42473b0f96ccd5e88a8f 100644 (file)
--- a/desc.c
+++ b/desc.c
@@ -777,7 +777,7 @@ epoll_wait_common(struct tcb *tcp)
                        tprints("{...}");
 #endif
                }
-               tprintf(", %ld, %ld", tcp->u_arg[2], tcp->u_arg[3]);
+               tprintf(", %d, %d", (int) tcp->u_arg[2], (int) tcp->u_arg[3]);
        }
 }