Module Name: src Committed By: kamil Date: Sat Mar 24 00:06:32 UTC 2018
Modified Files: src/tests/net/icmp: t_ping.c Log Message: Fix a printf(3)-like format in ATF ICMP t_ping.c Use %zd for ssize_t, instead of %d. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/tests/net/icmp/t_ping.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/net/icmp/t_ping.c diff -u src/tests/net/icmp/t_ping.c:1.20 src/tests/net/icmp/t_ping.c:1.21 --- src/tests/net/icmp/t_ping.c:1.20 Fri Mar 23 10:05:45 2018 +++ src/tests/net/icmp/t_ping.c Sat Mar 24 00:06:32 2018 @@ -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_ } 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);