summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/modem.c
diff options
context:
space:
mode:
authoramurai <amurai@FreeBSD.org>1995-03-11 15:18:55 +0000
committeramurai <amurai@FreeBSD.org>1995-03-11 15:18:55 +0000
commit4e41b74b9d21768a96f51254ed346d04bb4405af (patch)
tree37ea926bbfbf0a7fb4adb214f5262d8872ba5a52 /usr.sbin/ppp/modem.c
parent9b4b6386ecfab11f456999cadd482f36e97e6938 (diff)
downloadFreeBSD-src-4e41b74b9d21768a96f51254ed346d04bb4405af.zip
FreeBSD-src-4e41b74b9d21768a96f51254ed346d04bb4405af.tar.gz
1.Reducing cpu usage at off connection.
2.Implment Redail function as working correctly. 3.Clean up a code as I notice. 4.Now, RTT getting close to 50ms with ISDN/TA 38400bps !! Reviewed by: amurai@spec.co.jp Submitted by: amurai@spec.co.jp
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r--usr.sbin/ppp/modem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c
index 56a73ba..b056a83 100644
--- a/usr.sbin/ppp/modem.c
+++ b/usr.sbin/ppp/modem.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: modem.c,v 1.2 1995/02/26 12:17:45 amurai Exp $
+ * $Id: modem.c,v 1.3 1995/02/27 10:57:54 amurai Exp $
*
* TODO:
*/
@@ -375,12 +375,12 @@ int mode;
if (strncmp(VarDevice, "/dev", 4) == 0) {
strcpy(uucplock, rindex(VarDevice, '/')+1);
if (uu_lock(uucplock) < 0) {
- fprintf(stderr, "modem is in use.\n");
+ LogPrintf(LOG_PHASE, "Modem %s is in use\n", VarDevice);
return(-1);
}
modem = open(VarDevice, O_RDWR|O_NONBLOCK);
if (modem < 0) {
- perror("open modem");
+ LogPrintf(LOG_PHASE, "Open Failed %s\n", VarDevice);
return(modem);
}
} else {
OpenPOWER on IntegriCloud