diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-02 11:01:07 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-02 11:01:07 +0000 |
commit | 294d18845a0cf38d13dcb906aab2f29f95a1bec3 (patch) | |
tree | 37ccb346dda458cef1b3b10930d3caf44073681f /sys | |
parent | b4f793366b12b2d150cc5f27c4b5cf82fbf933b7 (diff) |
diff from peter phillip at freenet dot de:
the "pppoe0: up" message is annoying when one is on console and the
system has been configured to recall the ISP every minute or so.
Moving the printf() to a log() fixes this and the "pppoe0: up"
message is still seen in logs and dmesg.
ok canacar@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_spppsubr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 0edd3d7edd7..06cdcef41df 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.39 2006/03/04 22:40:16 brad Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.40 2006/07/02 11:01:06 reyk Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -1130,7 +1130,7 @@ sppp_cisco_input(struct sppp *sp, struct mbuf *m) if (! (ifp->if_flags & IFF_UP) && (ifp->if_flags & IFF_RUNNING)) { if_up(ifp); - printf (SPP_FMT "up\n", SPP_ARGS(ifp)); + log(LOG_INFO, SPP_FMT "up\n", SPP_ARGS(ifp)); } break; case CISCO_ADDR_REQ: @@ -2378,7 +2378,7 @@ sppp_lcp_tlu(struct sppp *sp) (ifp->if_flags & IFF_RUNNING)) { /* Coming out of loopback mode. */ if_up(ifp); - printf (SPP_FMT "up\n", SPP_ARGS(ifp)); + log(LOG_INFO, SPP_FMT "up\n", SPP_ARGS(ifp)); } for (i = 0; i < IDX_COUNT; i++) |