summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2001-12-26 22:36:59 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2001-12-26 22:36:59 +0000
commit64dce2fedb9160a694fe7300d85fa6cfd452f3d0 (patch)
tree0c5f4de7404a5851e5d668cf9947f701d932d6a7
parent10f461e8cbc00a89d7573ab554c8653ba1a4a366 (diff)
Notes
-rw-r--r--sys/net/if_spppsubr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 440b32dafc83..2d3d97ff85bc 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1602,12 +1602,13 @@ sppp_cp_input(const struct cp *cp, struct sppp *sp, struct mbuf *m)
if (upper == NULL)
catastrophic++;
- log(LOG_INFO,
- SPP_FMT "%s: RXJ%c (%s) for proto 0x%x (%s/%s)\n",
- SPP_ARGS(ifp), cp->name, catastrophic ? '-' : '+',
- sppp_cp_type_name(h->type), proto,
- upper ? upper->name : "unknown",
- upper ? sppp_state_name(sp->state[upper->protoidx]) : "?");
+ if (catastrophic || debug)
+ log(catastrophic? LOG_INFO: LOG_DEBUG,
+ SPP_FMT "%s: RXJ%c (%s) for proto 0x%x (%s/%s)\n",
+ SPP_ARGS(ifp), cp->name, catastrophic ? '-' : '+',
+ sppp_cp_type_name(h->type), proto,
+ upper ? upper->name : "unknown",
+ upper ? sppp_state_name(sp->state[upper->protoidx]) : "?");
/*
* if we got RXJ+ against conf-req, the peer does not implement