summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-16 19:40:42 +0000
committerbrian <brian@FreeBSD.org>1998-06-16 19:40:42 +0000
commit62c1a38e529411578a86f2dadc69bbe7c8984dbb (patch)
treea4f1e66234a76ec1e4a49b7f33aa4eac262156a7 /usr.sbin/ppp/main.c
parent798ba6f53e138822c35dd3e9b7e6f22683be6648 (diff)
downloadFreeBSD-src-62c1a38e529411578a86f2dadc69bbe7c8984dbb.zip
FreeBSD-src-62c1a38e529411578a86f2dadc69bbe7c8984dbb.tar.gz
Change some log levels. ALERTs are only logged when
something that can't happen happens or when everyone needs to know. ERRORs are only logged when something unexpected happens.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 2096e61..ab0be06 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.133 1998/06/15 19:06:50 brian Exp $
+ * $Id: main.c,v 1.134 1998/06/16 19:40:27 brian Exp $
*
* TODO:
*/
@@ -294,7 +294,8 @@ main(int argc, char **argv)
snprintf(conf, sizeof conf, "%s/%s", _PATH_PPP, CONFFILE);
do {
if (!access(conf, W_OK)) {
- log_Printf(LogALERT, "ppp: Access violation: Please protect %s\n", conf);
+ log_Printf(LogALERT, "ppp: Access violation: Please protect %s\n",
+ conf);
return -1;
}
ptr = conf + strlen(conf)-2;
@@ -506,7 +507,7 @@ DoLoop(struct bundle *bundle)
for (i = 0; i <= nfds; i++)
if (FD_ISSET(i, &efds)) {
- log_Printf(LogALERT, "Exception detected on descriptor %d\n", i);
+ log_Printf(LogERROR, "Exception detected on descriptor %d\n", i);
break;
}
OpenPOWER on IntegriCloud