summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-07 13:55:36 +0200
committerMartin Mares <mj@ucw.cz>2000-06-07 13:55:36 +0200
commit1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf (patch)
tree534312280ff067464e498338ba426b94ebb0b6aa
parent8cd5c52fcb7d429f41601f7be114168cb2371072 (diff)
downloadbird-1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf.tar
bird-1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf.zip
Avoid SEGV's in tracing.
-rw-r--r--proto/ospf/iface.c2
-rw-r--r--proto/ospf/lsupd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index c9e1808..e96ca73 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -87,7 +87,7 @@ downint(struct ospf_iface *ifa)
WALK_LIST_DELSAFE(n,nx,ifa->neigh_list)
{
- OSPF_TRACE(D_EVENTS, "%s: Removing neighbor %I", n->ip);
+ OSPF_TRACE(D_EVENTS, "Removing neighbor %I", n->ip);
ospf_neigh_remove(n);
}
rem_node(NODE ifa);
diff --git a/proto/ospf/lsupd.c b/proto/ospf/lsupd.c
index 73239a6..a5f2b79 100644
--- a/proto/ospf/lsupd.c
+++ b/proto/ospf/lsupd.c
@@ -369,7 +369,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
lsa->age=htons(LSA_MAXAGE);
lsa->sn=htonl(LSA_MAXSEQNO);
OSPF_TRACE(D_EVENTS, "Premature aging self originated lsa.");
- OSPF_TRACE(D_EVENTS, "%s: Type: %d, Id: %I, Rt: %I",lsatmp.type,
+ OSPF_TRACE(D_EVENTS, "Type: %d, Id: %I, Rt: %I",lsatmp.type,
lsatmp.id, lsatmp.rt);
lsasum_check(lsa,(lsa+1),po);
lsatmp.checksum=ntohs(lsa->checksum);