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

index f52ff67f86d20e8b87eeda712456e45b6d03c0dd..bb9d21d7fcc8f1ea5ab9a586ee684672d3231de1 100644 (file)
@@ -8,6 +8,9 @@
 
 #include "ospf.h"
 
+char *ospf_ns[]={"down", "attempt", "init", "2way", "exstart", "exchange",
+  "loading", "full"};
+
 void
 neigh_chstate(struct ospf_neighbor *n, u8 state)
 {
@@ -19,8 +22,8 @@ neigh_chstate(struct ospf_neighbor *n, u8 state)
     ifa=n->ifa;
     p=(struct proto *)(ifa->proto);
   
-    debug("%s: Neigbor '%u' changes state from %u to %u.\n", p->name, n->rid,
-      n->state, state);
+    debug("%s: Neigbor '%u' changes state from \"%u\" to \"%u\".\n",
+      p->name, n->rid, ospf_ns[n->state], ospf_ns[state]);
     n->state=state;
   }
 }