Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/icmp Fix a printf(3)-like format in ATF ICMP t_ping.c



details:   https://anonhg.NetBSD.org/src/rev/7184a88a544f
branches:  trunk
changeset: 321577:7184a88a544f
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Mar 24 00:06:32 2018 +0000

description:
Fix a printf(3)-like format in ATF ICMP t_ping.c

Use %zd for ssize_t, instead of %d.

diffstat:

 tests/net/icmp/t_ping.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 17ee435a1f49 -r 7184a88a544f tests/net/icmp/t_ping.c
--- a/tests/net/icmp/t_ping.c   Fri Mar 23 11:57:33 2018 +0000
+++ b/tests/net/icmp/t_ping.c   Sat Mar 24 00:06:32 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ping.c,v 1.20 2018/03/23 10:05:45 roy Exp $  */
+/*     $NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $        */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: t_ping.c,v 1.20 2018/03/23 10:05:45 roy Exp $");
+__RCSID("$NetBSD: t_ping.c,v 1.21 2018/03/24 00:06:32 kamil Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -198,7 +198,7 @@
                }
                if (n == -1 && (errno == EAGAIN || errno == ENOBUFS))
                        continue;
-               atf_tc_fail_errno("recv failed (n == %d)", n);
+               atf_tc_fail_errno("recv failed (n == %zd)", n);
        }
 
        rump_sys_close(s);



Home | Main Index | Thread Index | Old Index