From 942fd6f64fee7db2f2e7fa5671a32e6bf700e4e2 Mon Sep 17 00:00:00 2001 From: kamil Date: Sat, 24 Mar 2018 00:06:32 +0000 Subject: Fix a printf(3)-like format in ATF ICMP t_ping.c Use %zd for ssize_t, instead of %d. --- tests/net/icmp/t_ping.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 #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 @@ -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); -- cgit