]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
All die() renamed to bug().
authorOndrej Filip <feela@network.cz>
Tue, 6 Jun 2000 01:00:34 +0000 (01:00 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 6 Jun 2000 01:00:34 +0000 (01:00 +0000)
proto/ospf/dbdes.c
proto/ospf/iface.c
proto/ospf/lsalib.c
proto/ospf/lsreq.c
proto/ospf/neighbor.c

index 7278ccb1c9db4b841203104d9f3273b72e440334..4b73733310903851b524207825db33eec9ae7965 100644 (file)
@@ -133,7 +133,7 @@ ospf_dbdes_tx(struct ospf_neighbor *n)
       break;
 
     default:                           /* Ignore it */
-      die("Bug in dbdes sending");
+      bug("Bug in dbdes sending");
       break;
   }
 }
@@ -357,7 +357,7 @@ ospf_dbdes_rx(struct ospf_dbdes_packet *ps, struct proto *p,
         }
       break;
     defaut:
-      die("%s: Received dbdes from %I in unknown state.", p->name, n->ip);
+      bug("%s: Received dbdes from %I in undefined state.", p->name, n->ip);
       break;
    }
 }
index 62beb3b7b07d528107b0741357d942d276db8b3f..ff29a1fdc4a4d2418adfe27a40807daa558d2446 100644 (file)
@@ -184,7 +184,7 @@ ospf_int_sm(struct ospf_iface *ifa, int event)
       schedule_rt_lsa(ifa->oa);
       break;
     default:
-      die("%s: ISM - Unknown event?",p->name);
+      bug("%s: ISM - Unknown event?",p->name);
       break;
   }
        
index 181f78bb1775a5ab1c73d92908f116d119136eb9..0741c7953e4c11e136e0b11e654ca44dc92480e9 100644 (file)
@@ -176,7 +176,7 @@ htonlsab(void *h, void *n, u8 type, u16 len)
       }
       break;
     }
-    default: die("(hton): Unknown LSA");
+    default: bug("(hton): Unknown LSA");
   }
 };
 
@@ -273,7 +273,7 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
       }
       break;
     }
-    default: die("(ntoh): Unknown LSA");
+    default: bug("(ntoh): Unknown LSA");
   }
 };
 
index c9c4b1d1e15e044a7c81635cedf75ba36eb78090..504ab588135d16b8499d64f1c19ae600bd2b7c7c 100644 (file)
@@ -86,7 +86,7 @@ lsrr_timer_hook(timer *timer)
 
       WALK_SLIST(SNODE en,n->lsrtl)
       {
-       if((SNODE en)->next==(SNODE en)) die("BUGGGGGG");
+       if((SNODE en)->next==(SNODE en)) bug("RTList is cycled");
         llsh=sl_alloc(upslab);
         llsh->lsh.id=en->lsa.id;
         llsh->lsh.rt=en->lsa.rt;
index 9e04bacc322e223693e896ba7a145a14a1c2ab6d..72930cc34b01df72bf33123d4b48a90366759aaa 100644 (file)
@@ -176,7 +176,7 @@ can_do_adj(struct ospf_neighbor *n)
       switch(ifa->state)
       {
         case OSPF_IS_DOWN:
-          die("%s: Iface %s in down state?", p->name, ifa->iface->name);
+          bug("%s: Iface %s in down state?", p->name, ifa->iface->name);
           break;
         case OSPF_IS_WAITING:
           DBG("%s: Neighbor? on iface %s\n",p->name, ifa->iface->name);
@@ -191,12 +191,12 @@ can_do_adj(struct ospf_neighbor *n)
           if(n->state>=NEIGHBOR_2WAY) i=1;
           break;
         default:
-          die("%s: Iface %s in unknown state?",p->name, ifa->iface->name);
+          bug("%s: Iface %s in unknown state?",p->name, ifa->iface->name);
           break;
       }
       break;
     default:
-      die("%s: Iface %s is unknown type?",p->name, ifa->iface->name);
+      bug("%s: Iface %s is unknown type?",p->name, ifa->iface->name);
       break;
   }
   DBG("%s: Iface %s can_do_adj=%d\n",p->name, ifa->iface->name,i);
@@ -249,7 +249,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
        tm_start(n->lsrr_timer,n->ifa->rxmtint);
        tm_start(n->ackd_timer,n->ifa->rxmtint/2);
       }
-      else die("NEGDONE and I'm not in EXSTART?");
+      else bug("NEGDONE and I'm not in EXSTART?");
       break;
     case INM_EXDONE:
         neigh_chstate(n,NEIGHBOR_LOADING);
@@ -293,7 +293,7 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
       neigh_chstate(n,NEIGHBOR_INIT);
       break;
     default:
-      die("%s: INM - Unknown event?",p->name);
+      bug("%s: INM - Unknown event?",p->name);
       break;
   }
 }
@@ -358,7 +358,7 @@ bdr_election(struct ospf_iface *ifa, struct proto *p)
   else
   {
     if((tmp=find_neigh(ifa,ndrid))==NULL)
-      die("Error in DR election.");
+      bug("Error in DR election.");
     ifa->drid=ndrid;
     ifa->drip=tmp->ip;
   }
@@ -371,7 +371,7 @@ bdr_election(struct ospf_iface *ifa, struct proto *p)
   else
   {
     if((tmp=find_neigh(ifa,nbdrid))==NULL)
-      die("Error in BDR election.");
+      bug("Error in BDR election.");
     ifa->bdrid=nbdrid;
     ifa->bdrip=tmp->ip;
   }