summaryrefslogtreecommitdiff
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-06-08 15:06:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-06-08 15:06:27 +0000
commit2134ffc00d8c4cac279d5a9e8e7ffc268ea100d9 (patch)
tree563bd49bf309a123ab4bce5bcd5d3e51eb04e6c1 /sys/net/if_spppsubr.c
parent18d72416ee6d304dbc7155a7450e3610cd08469e (diff)
Don't spam dmesg with sppp messages, instead use log(9).
OK canacar@ some time ago
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 6e45a52da4f..a2886a8f261 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.68 2008/05/17 04:50:54 canacar Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.69 2008/06/08 15:06:26 claudio Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -1181,7 +1181,7 @@ sppp_cisco_input(struct sppp *sp, struct mbuf *m)
/* Local and remote sequence numbers are equal.
* Probably, the line is in loopback mode. */
if (sp->pp_loopcnt >= LOOPALIVECNT) {
- printf (SPP_FMT "loopback\n",
+ log(LOG_INFO, SPP_FMT "loopback\n",
SPP_ARGS(ifp));
sp->pp_loopcnt = 0;
if (ifp->if_flags & IFF_UP) {
@@ -1680,7 +1680,7 @@ sppp_cp_input(const struct cp *cp, struct sppp *sp, struct mbuf *m)
if (nmagic == sp->lcp.magic) {
/* Line loopback mode detected. */
- printf(SPP_FMT "loopback\n", SPP_ARGS(ifp));
+ log(LOG_INFO, SPP_FMT "loopback\n", SPP_ARGS(ifp));
/* Shut down the PPP link. */
lcp.Close(sp);
break;
@@ -4540,7 +4540,7 @@ sppp_keepalive(void *dummy)
if_down (ifp);
sppp_qflush (&sp->pp_cpq);
if (! (sp->pp_flags & PP_CISCO)) {
- printf (SPP_FMT "LCP keepalive timeout\n",
+ log(LOG_INFO, SPP_FMT "LCP keepalive timeout\n",
SPP_ARGS(ifp));
sp->pp_alivecnt = 0;