]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Better chstate dumping.
authorOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 17:54:06 +0000 (17:54 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 17:54:06 +0000 (17:54 +0000)
proto/ospf/iface.c

index 8ba198f11369346a4623ac6b26ad125dcd19a7ee..603525c15829a455d212721b34c9abf575073e7e 100644 (file)
@@ -8,14 +8,18 @@
 
 #include "ospf.h"
 
+char *ospf_is[]={ "down", "loop", "waiting", "point-to-point", "drother",
+  "backup", "dr" };
+
+
 void
 iface_chstate(struct ospf_iface *ifa, u8 state)
 {
   struct proto *p;
 
   p=(struct proto *)(ifa->proto);
-  debug("%s: Changing state of iface: %s from %u into %u.\n",
-    p->name, ifa->iface->name, ifa->state, state);
+  debug("%s: Changing state of iface: %s from \"%s\" into \"%s\".\n",
+    p->name, ifa->iface->name, ospf_is[ifa->state], ospf_is[state]);
   ifa->state=state;
   if(ifa->iface->flags & IF_MULTICAST)
   {