summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2018-03-24 00:06:32 +0000
committerkamil <kamil@NetBSD.org>2018-03-24 00:06:32 +0000
commit942fd6f64fee7db2f2e7fa5671a32e6bf700e4e2 (patch)
treedce028eb9ffa0d88e6a71904ea784a6eca50ed8d /tests
parentbb6e552c53e6431991e28a01e9d2a07e0121d64a (diff)
Fix a printf(3)-like format in ATF ICMP t_ping.c
Use %zd for ssize_t, instead of %d.
Diffstat (limited to 'tests')
-rw-r--r--tests/net/icmp/t_ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/net/icmp/t_ping.c b/tests/net/icmp/t_ping.c
index 21ecaacb4b7..ffdb568b3f9 100644
--- a/tests/net/icmp/t_ping.c
+++ b/tests/net/icmp/t_ping.c
@@ -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 @@ doping(const char *target, int loops, u_int pktsize)
}
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);