Hi!

If the argument is an "int", then do not try to print it as "long" since
that will produce garbage when sizeof(int) != sizeof(long).

Gabor

diff --git a/net.c b/net.c
index 9d2b9f9..974e2bb 100644
--- a/net.c
+++ b/net.c
@@ -1682,7 +1682,7 @@ struct tcb *tcp;
 
                tprintf (", ");
                if (len == sizeof (int)) {
-                       printnum(tcp, tcp->u_arg[3], "%ld");
+                       printnum_int(tcp, tcp->u_arg[3], "%d");
                }
                else {
                        printstr (tcp, tcp->u_arg[3], len);
-- 
1.6.5

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to