]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Avoid SEGV's in tracing.
authorMartin Mares <mj@ucw.cz>
Wed, 7 Jun 2000 11:55:36 +0000 (11:55 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 7 Jun 2000 11:55:36 +0000 (11:55 +0000)
proto/ospf/iface.c
proto/ospf/lsupd.c

index c9e1808e35e3192ad6d74a0e09ae8df6b0c30200..e96ca7315206833834a3f9fda18033375bb0d7c6 100644 (file)
@@ -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);
index 73239a630bf184f30d809cd6013981e7292ef7b6..a5f2b794409c504c43f5c6787d8913829b24e9f5 100644 (file)
@@ -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);