]> granicus.if.org Git - strace/commitdiff
2005-02-01 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 03:11:32 +0000 (03:11 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Feb 2005 03:11:32 +0000 (03:11 +0000)
* net.c (sys_getsockopt): Fix a format %ld -> %d.

net.c

diff --git a/net.c b/net.c
index 3d0d8615944513a3dc4958987edaf63bc804e938..593ccf3e23c336b393c57c39c89049f71f166fc0 100644 (file)
--- 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);