summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-17 20:10:54 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-17 20:10:54 +0000
commit4b78d7a41e7239e2f6e8c58a2a7edc643c80b095 (patch)
tree85834db3f5d663b98f9e46017dd2344418f9f337 /usr.sbin
parent1f683b526329e503fa3e8bfc25e2baf56c12037e (diff)
rev 1.55
Report the number of bytes not written when complaining about failed writes From brian FreeBSD
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/ppp/physical.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ppp/physical.c b/usr.sbin/ppp/ppp/physical.c
index 7634c8fe980..fdc6d74f913 100644
--- a/usr.sbin/ppp/ppp/physical.c
+++ b/usr.sbin/ppp/ppp/physical.c
@@ -16,7 +16,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $OpenBSD: physical.c,v 1.39 2005/07/17 20:08:55 brad Exp $
+ * $OpenBSD: physical.c,v 1.40 2005/07/17 20:10:53 brad Exp $
*
*/
@@ -427,8 +427,8 @@ physical_DescriptorWrite(struct fdescriptor *d, struct bundle *bundle,
if (errno == EAGAIN)
result = 1;
else if (errno != ENOBUFS) {
- log_Printf(LogPHASE, "%s: write (%d): %s\n", p->link.name,
- p->fd, strerror(errno));
+ log_Printf(LogPHASE, "%s: write (fd %d, len %d): %s\n", p->link.name,
+ p->fd, p->out->m_len, strerror(errno));
datalink_Down(p->dl, CLOSE_NORMAL);
}
}