diff options
author | Brian Somers <brian@FreeBSD.org> | 2004-07-20 01:42:30 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2004-07-20 01:42:30 +0000 |
commit | b00fb497421eb7d6360f15bca267004ca1bd1326 (patch) | |
tree | 645ffdbf04b1fd4479ad293b1bbc2221b0bba379 /usr.sbin | |
parent | 2396628bb45718f0623614c6adece1a978808e5d (diff) | |
download | src-b00fb497421eb7d6360f15bca267004ca1bd1326.tar.gz src-b00fb497421eb7d6360f15bca267004ca1bd1326.zip |
Report the number of bytes not written when complaining about failed writes
Notes
Notes:
svn path=/head/; revision=132423
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/physical.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c index bff11987d2a3..ec93fccbcc81 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); } } |