diff options
author | Ondrej Filip <feela@network.cz> | 2000-06-06 02:34:57 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-06-06 02:34:57 +0000 |
commit | abcbfd0400eeb514c63376b50d3948581c20ca4c (patch) | |
tree | e52c77c9d47ed77e2eb266280f5ccf102faa2a34 /proto/ospf/neighbor.c | |
parent | 531a48d8c5c168329640ccb21cd062dbb7b6f5a2 (diff) |
Tracing.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r-- | proto/ospf/neighbor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c index 72930cc3..8e59f0c6 100644 --- a/proto/ospf/neighbor.c +++ b/proto/ospf/neighbor.c @@ -37,8 +37,8 @@ neigh_chstate(struct ospf_neighbor *n, u8 state) n->state=state; - debug("%s: Neighbor %I changes state from \"%s\" to \"%s\".\n", - p->name, n->ip, ospf_ns[oldstate], ospf_ns[state]); + OSPF_TRACE( D_EVENTS, "Neighbor %I changes state from \"%s\" to \"%s\".", + n->ip, ospf_ns[oldstate], ospf_ns[state]); if((state==NEIGHBOR_2WAY) && (oldstate<NEIGHBOR_2WAY)) ospf_int_sm(ifa, ISM_NEICH); @@ -278,7 +278,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event) break; case INM_SEQMIS: case INM_BADLSREQ: - debug("%s: Bad LS req!\n", p->name); + OSPF_TRACE(D_EVENTS, "Bad LS req!"); if(n->state>=NEIGHBOR_EXCHANGE) { neigh_chstate(n,NEIGHBOR_EXSTART); @@ -439,8 +439,8 @@ neighbor_timer_hook(timer *timer) n=(struct ospf_neighbor *)timer->data; ifa=n->ifa; p=(struct proto *)(ifa->proto); - debug("%s: Inactivity timer fired on interface %s for neighbor %I.\n", - p->name, ifa->iface->name, n->ip); + OSPF_TRACE(D_EVENTS,"Inactivity timer fired on interface %s for neighbor %I.", + ifa->iface->name, n->ip); ospf_neigh_remove(n); } @@ -484,7 +484,7 @@ ospf_neigh_remove(struct ospf_neighbor *n) } rem_node(NODE n); mb_free(n); - debug("%s: Deleting neigbor.\n", p->name); + OSPF_TRACE(D_EVENTS, "Deleting neigbor."); } void |