summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsalib.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-06 04:50:49 +0200
committerOndrej Filip <feela@network.cz>2000-06-06 04:50:49 +0200
commit064b1d893243bc187980f53292414583ff3b4630 (patch)
tree38b66a1ab031e3bf7b00e3f88324eedec3d66c55 /proto/ospf/lsalib.c
parentbd37f45c10be697403e59c957273d172b3d3ed8e (diff)
downloadbird-064b1d893243bc187980f53292414583ff3b4630.tar
bird-064b1d893243bc187980f53292414583ff3b4630.zip
Tracing.
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r--proto/ospf/lsalib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index 0741c79..46b6d09 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -11,7 +11,8 @@
void
flush_lsa(struct top_hash_entry *en, struct ospf_area *oa)
{
- debug("Going to remove node: Type: %u, Id: %I, Rt: %I, Age: %u\n",
+ struct proto *p=&oa->po->proto;
+ OSPF_TRACE(D_EVENTS, "Going to remove node Type: %u, Id: %I, Rt: %I, Age: %u",
en->lsa.type, en->lsa.id, en->lsa.rt, en->lsa.age);
s_rem_node(SNODE en);
ospf_hash_delete(oa->gr,en);
@@ -35,8 +36,8 @@ ospf_age(struct ospf_area *oa)
}
if((en->lsa.rt==p->cf->global->router_id)&&(en->lsa.age>=LSREFRESHTIME))
{
- debug("%s: Refreshing my LSA: Type: %u, Id: %I, Rt: %I\n",
- p->name,en->lsa.type, en->lsa.id, en->lsa.rt);
+ OSPF_TRACE(D_EVENTS, "Refreshing my LSA: Type: %u, Id: %I, Rt: %I",
+ en->lsa.type, en->lsa.id, en->lsa.rt);
en->lsa.sn++;
en->lsa.age=0;
lsasum_calculate(&en->lsa,en->lsa_body,po);