From: Roland McGrath Date: Wed, 2 Feb 2005 03:11:32 +0000 (+0000) Subject: 2005-02-01 Roland McGrath X-Git-Tag: v4.5.18~460 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96ad7b8f529221bd1db1c3cdca871ee9e1dc713a;p=strace 2005-02-01 Roland McGrath * net.c (sys_getsockopt): Fix a format %ld -> %d. --- diff --git a/net.c b/net.c index 3d0d8615..593ccf3e 100644 --- a/net.c +++ b/net.c @@ -1097,7 +1097,7 @@ unsigned long len; if (u.cmsg.cmsg_level == SOL_SOCKET) { printxval(scmvals, u.cmsg.cmsg_type, "SCM_???"); - + if (u.cmsg.cmsg_type == SCM_RIGHTS) { int *fds = (int *) CMSG_DATA (&u.cmsg); int first = 1; @@ -1578,7 +1578,7 @@ struct tcb *tcp; &linger) < 0) break; tprintf(", {onoff=%d, linger=%d}, " - "[%ld]", + "[%d]", linger.l_onoff, linger.l_linger, len);