summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/deflate.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/deflate.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/deflate.c')
-rw-r--r--usr.sbin/ppp/deflate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/deflate.c b/usr.sbin/ppp/deflate.c
index 4bc8bce..c0d83cf 100644
--- a/usr.sbin/ppp/deflate.c
+++ b/usr.sbin/ppp/deflate.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: deflate.c,v 1.8 1998/05/21 21:45:00 brian Exp $
+ * $Id: deflate.c,v 1.9 1998/06/15 19:06:39 brian Exp $
*/
#include <sys/types.h>
@@ -113,7 +113,7 @@ DeflateOutput(void *v, struct ccp *ccp, struct link *l, int pri, u_short proto,
if ((res = deflate(&state->cx, flush)) != Z_OK) {
if (res == Z_STREAM_END)
break; /* Done */
- log_Printf(LogERROR, "DeflateOutput: deflate returned %d (%s)\n",
+ log_Printf(LogWARN, "DeflateOutput: deflate returned %d (%s)\n",
res, state->cx.msg ? state->cx.msg : "");
mbuf_Free(mo_head);
mbuf_FreeSeg(mi_head);
@@ -221,7 +221,7 @@ DeflateInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mi)
*/
state->seqno = seq;
else {
- log_Printf(LogERROR, "DeflateInput: Seq error: Got %d, expected %d\n",
+ log_Printf(LogWARN, "DeflateInput: Seq error: Got %d, expected %d\n",
seq, state->seqno);
mbuf_Free(mi_head);
ccp_SendResetReq(&ccp->fsm);
@@ -257,7 +257,7 @@ DeflateInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mi)
if ((res = inflate(&state->cx, flush)) != Z_OK) {
if (res == Z_STREAM_END)
break; /* Done */
- log_Printf(LogERROR, "DeflateInput: inflate returned %d (%s)\n",
+ log_Printf(LogWARN, "DeflateInput: inflate returned %d (%s)\n",
res, state->cx.msg ? state->cx.msg : "");
mbuf_Free(mo_head);
mbuf_Free(mi);
@@ -301,7 +301,7 @@ DeflateInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mi)
mbuf_Free(mi);
if (first) {
- log_Printf(LogERROR, "DeflateInput: Length error\n");
+ log_Printf(LogWARN, "DeflateInput: Length error\n");
mbuf_Free(mo_head);
ccp_SendResetReq(&ccp->fsm);
return NULL;
OpenPOWER on IntegriCloud