From 1ae494a7e1fb7dde3ffc4e5dd7df31a1bf8dd6bf Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 7 Jun 2000 11:55:36 +0000 Subject: Avoid SEGV's in tracing. --- proto/ospf/iface.c | 2 +- proto/ospf/lsupd.c | 2 +- 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); -- cgit v1.2.3