summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-04-15 19:55:14 +0000
committerphk <phk@FreeBSD.org>1998-04-15 19:55:14 +0000
commit8a4252919b2548f4d2e0122db7ac219927864704 (patch)
tree732e0b8a7803d722dcc70914524c49e01b33c612 /sbin
parent23694650fbdb60acd84a172cb58580fac9ea8b14 (diff)
downloadFreeBSD-src-8a4252919b2548f4d2e0122db7ac219927864704.zip
FreeBSD-src-8a4252919b2548f4d2e0122db7ac219927864704.tar.gz
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
Diffstat (limited to 'sbin')
-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 3de67ae..963e378 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++;
OpenPOWER on IntegriCloud