5e993f12 |
1 | From rdunlap@xenotime.net Fri Jul 13 16:59:16 2007 |
2 | Delivered-To: vapierfilter@gmail.com |
3 | Received: by 10.114.59.18 with SMTP id h18cs257122waa; |
4 | Fri, 13 Jul 2007 13:55:32 -0700 (PDT) |
5 | Received: by 10.65.251.17 with SMTP id d17mr3739065qbs.1184360131897; |
6 | Fri, 13 Jul 2007 13:55:31 -0700 (PDT) |
7 | Return-Path: <ltp-list-bounces@lists.sourceforge.net> |
8 | Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) |
9 | by mx.google.com with ESMTP id e10si7683747qbe.2007.07.13.13.55.31; |
10 | Fri, 13 Jul 2007 13:55:31 -0700 (PDT) |
11 | Received-SPF: neutral (google.com: 140.211.166.183 is neither permitted nor denied by domain of ltp-list-bounces@lists.sourceforge.net) |
12 | Received: by smtp.gentoo.org (Postfix) |
13 | id BDFED64FA3; Fri, 13 Jul 2007 20:55:30 +0000 (UTC) |
14 | Delivered-To: vapier@gentoo.org |
15 | Received: from localhost (localhost [127.0.0.1]) |
16 | by smtp.gentoo.org (Postfix) with ESMTP id 8F4B364E53 |
17 | for <vapier@gentoo.org>; Fri, 13 Jul 2007 20:55:30 +0000 (UTC) |
18 | X-Virus-Scanned: amavisd-new at gentoo.org |
19 | X-Spam-Score: -2.409 |
20 | X-Spam-Level: |
21 | X-Spam-Status: No, score=-2.409 required=5.5 tests=[AWL=0.055, |
22 | BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] |
23 | Received: from smtp.gentoo.org ([127.0.0.1]) |
24 | by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) |
25 | with ESMTP id D8grg5fy0MsY for <vapier@gentoo.org>; |
26 | Fri, 13 Jul 2007 20:55:25 +0000 (UTC) |
27 | Received: from lists-outbound.sourceforge.net (lists-outbound.sourceforge.net [66.35.250.225]) |
28 | by smtp.gentoo.org (Postfix) with ESMTP id BCA3B64FA3 |
29 | for <vapier@gentoo.org>; Fri, 13 Jul 2007 20:55:25 +0000 (UTC) |
30 | Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) |
31 | by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP |
32 | id 85D7C130C5; Fri, 13 Jul 2007 13:55:25 -0700 (PDT) |
33 | Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] |
34 | helo=mail.sourceforge.net) |
35 | by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) |
36 | id 1I9SAa-0000tB-V2 |
37 | for ltp-list@lists.sourceforge.net; Fri, 13 Jul 2007 13:55:22 -0700 |
38 | Received: from xenotime.net ([66.160.160.81]) |
39 | by mail.sourceforge.net with smtp (Exim 4.44) id 1I9SAa-0005N5-Mv |
40 | for ltp-list@lists.sourceforge.net; Fri, 13 Jul 2007 13:55:20 -0700 |
41 | Received: from midway.site ([71.117.236.25]) by xenotime.net for |
42 | <ltp-list@lists.sourceforge.net>; Fri, 13 Jul 2007 13:55:16 -0700 |
43 | Date: Fri, 13 Jul 2007 13:59:16 -0700 |
44 | From: Randy Dunlap <rdunlap@xenotime.net> |
45 | To: ltp-list@lists.sourceforge.net |
46 | Message-Id: <20070713135916.ded7073e.rdunlap@xenotime.net> |
47 | Organization: YPO4 |
48 | X-Mailer: Sylpheed 2.4.2 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) |
49 | Mime-Version: 1.0 |
50 | Subject: [LTP] [patch] fix net-stress printf format warnings |
51 | X-BeenThere: ltp-list@lists.sourceforge.net |
52 | X-Mailman-Version: 2.1.8 |
53 | Precedence: list |
54 | List-Id: Linux Test Project General Discussions |
55 | <ltp-list.lists.sourceforge.net> |
56 | List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/ltp-list>, |
57 | <mailto:ltp-list-request@lists.sourceforge.net?subject=unsubscribe> |
58 | List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=ltp-list> |
59 | List-Post: <mailto:ltp-list@lists.sourceforge.net> |
60 | List-Help: <mailto:ltp-list-request@lists.sourceforge.net?subject=help> |
61 | List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/ltp-list>, |
62 | <mailto:ltp-list-request@lists.sourceforge.net?subject=subscribe> |
63 | Content-Type: text/plain; |
64 | charset="us-ascii" |
65 | Content-Transfer-Encoding: 7bit |
66 | Sender: ltp-list-bounces@lists.sourceforge.net |
67 | Errors-To: ltp-list-bounces@lists.sourceforge.net |
68 | Status: R |
69 | X-Status: NC |
70 | X-KMail-EncryptionState: |
71 | X-KMail-SignatureState: |
72 | X-KMail-MDN-Sent: |
73 | |
74 | Fix printf format warnings: |
75 | |
76 | ns-tcpserver.c:194: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' |
77 | ns-tcpserver.c:496: warning: format '%d' expects type 'int', but argument 3 has type 'size_t' |
78 | |
79 | ns-mcast_receiver.c:417: warning: format '%d' expects type 'int', but argument 3 has type 'ssize_t' |
80 | |
81 | ns-igmp_querier.c:440: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t' |
82 | |
83 | ns-mcast_join.c:404: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t' |
84 | |
85 | --- |
86 | testcases/network/stress/ns-tools/ns-igmp_querier.c | 2 +- |
87 | testcases/network/stress/ns-tools/ns-mcast_join.c | 2 +- |
88 | testcases/network/stress/ns-tools/ns-mcast_receiver.c | 2 +- |
89 | testcases/network/stress/ns-tools/ns-tcpserver.c | 4 ++-- |
90 | 4 files changed, 5 insertions(+), 5 deletions(-) |
91 | |
92 | --- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-tcpserver.c |
93 | +++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-tcpserver.c |
94 | @@ -190,7 +190,7 @@ delete_zombies(struct server_info *info_ |
95 | if (status != EXIT_SUCCESS) { |
96 | ++info_p->lost_connection; |
97 | if (debug) |
98 | - fprintf (stderr, "The number of lost conncections is %d\n", |
99 | + fprintf (stderr, "The number of lost conncections is %zu\n", |
100 | info_p->lost_connection); |
101 | } |
102 | } |
103 | @@ -493,7 +493,7 @@ handle_client(struct server_info *info_p |
104 | if (info_p->max_connection < info_p->current_connection) { |
105 | info_p->max_connection = info_p->current_connection; |
106 | if (debug) |
107 | - fprintf (stderr, "The maximum connection is updated. The number is %d.\n", info_p->max_connection); |
108 | + fprintf (stderr, "The maximum connection is updated. The number is %zu.\n", info_p->max_connection); |
109 | } |
110 | delete_zombies(info_p); |
111 | } |
112 | --- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-igmp_querier.c |
113 | +++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-igmp_querier.c |
114 | @@ -437,7 +437,7 @@ send_query(struct igmp_info *info_p) |
115 | start_time = time(NULL); |
116 | query_size = MY_IGMPV3_QUERY_SIZE(ntohs(info_p->query->nsrcs)); |
117 | if (debug) |
118 | - fprintf (stderr, "query size is %u\n", query_size); |
119 | + fprintf (stderr, "query size is %zu\n", query_size); |
120 | |
121 | for(;;) { |
122 | retval = sendto(sd, info_p->query, query_size, 0, |
123 | --- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-mcast_join.c |
124 | +++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-mcast_join.c |
125 | @@ -401,7 +401,7 @@ join_group(void) |
126 | freeaddrinfo(maddr_info); |
127 | } |
128 | |
129 | - fprintf(stdout, "%u groups\n", num_group); |
130 | + fprintf(stdout, "%zu groups\n", num_group); |
131 | fflush(stdout); |
132 | |
133 | /* Become a daemon for the next step in shell script */ |
134 | --- ltp-full-20070630.orig/testcases/network/stress/ns-tools/ns-mcast_receiver.c |
135 | +++ ltp-full-20070630/testcases/network/stress/ns-tools/ns-mcast_receiver.c |
136 | @@ -414,7 +414,7 @@ receive_mcast(struct mcast_rcv_info *inf |
137 | if (errno != EAGAIN) |
138 | fatal_error("recvfrom()"); |
139 | } else if (debug) |
140 | - fprintf(stderr, "received %d byte message\n", msglen); |
141 | + fprintf(stderr, "received %zd byte message\n", msglen); |
142 | |
143 | if (info_p->timeout) |
144 | if (info_p->timeout < difftime(time(NULL), start_time)) |
145 | |
146 | ------------------------------------------------------------------------- |
147 | This SF.net email is sponsored by DB2 Express |
148 | Download DB2 Express C - the FREE version of DB2 express and take |
149 | control of your XML. No limits. Just data. Click to get it now. |
150 | http://sourceforge.net/powerbar/db2/ |
151 | _______________________________________________ |
152 | Ltp-list mailing list |
153 | Ltp-list@lists.sourceforge.net |
154 | https://lists.sourceforge.net/lists/listinfo/ltp-list |
155 | |