summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-07-20 01:42:30 +0000
committerbrian <brian@FreeBSD.org>2004-07-20 01:42:30 +0000
commitc33b761408b28fd1800e7c9461699c1384fa5bd1 (patch)
tree645ffdbf04b1fd4479ad293b1bbc2221b0bba379
parent069d2d3959d5c806644fdabb6e331a7fe8bdb912 (diff)
downloadFreeBSD-src-c33b761408b28fd1800e7c9461699c1384fa5bd1.zip
FreeBSD-src-c33b761408b28fd1800e7c9461699c1384fa5bd1.tar.gz
Report the number of bytes not written when complaining about failed writes
-rw-r--r--usr.sbin/ppp/physical.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c
index bff1198..ec93fcc 100644
--- a/usr.sbin/ppp/physical.c
+++ b/usr.sbin/ppp/physical.c
@@ -425,8 +425,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);
}
}
OpenPOWER on IntegriCloud