aboutsummaryrefslogtreecommitdiff
path: root/sbin/ping
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-04-15 19:55:14 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-04-15 19:55:14 +0000
commit416aa49b7073513c32574cb9fd305faf22e06704 (patch)
tree22fb90119195cdc943d841f382105919e6f704c5 /sbin/ping
parent1d37f051c1c225da97554e069c28c772a73bb661 (diff)
downloadsrc-416aa49b7073513c32574cb9fd305faf22e06704.tar.gz
src-416aa49b7073513c32574cb9fd305faf22e06704.zip
If ping write fails with short packet count, the
error message prints the two numbers backwards. PR: 6313 Reviewed by: phk Submitted by: Archie Cobbs
Notes
Notes: svn path=/head/; revision=35216
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 3de67aedf887..963e378a072d 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
*/
static const char rcsid[] =
- "$Id: ping.c,v 1.31 1998/04/02 01:12:55 eivind Exp $";
+ "$Id: ping.c,v 1.32 1998/04/02 04:33:18 imp Exp $";
#endif /* not lint */
/*
@@ -592,7 +592,7 @@ pinger(void)
warn("sendto");
} else {
warn("%s: partial write: %d of %d bytes",
- hostname, cc, i);
+ hostname, i, cc);
}
}
ntransmitted++;