]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Bugfix in DBG call.
authorOndrej Filip <feela@majklik.network.cz>
Thu, 7 Jan 2010 22:03:19 +0000 (23:03 +0100)
committerOndrej Filip <feela@majklik.network.cz>
Thu, 7 Jan 2010 22:03:19 +0000 (23:03 +0100)
proto/ospf/iface.c

index e6cdd1f222640e2cd0f7df48b73532421df45ed4..a9c67414624a17b889e7f5b157d7a5d4098e2a74 100644 (file)
@@ -236,7 +236,8 @@ ospf_iface_sm(struct ospf_iface *ifa, int event)
 {
   struct ospf_area *oa = ifa->oa;
 
-  DBG("SM on iface %s. Event is '%s'\n", ifa->iface->name, ospf_ism[event]);
+  DBG("SM on %s %s. Event is '%s'\n", (ifa->type == OSPF_IT_VLINK) ? "vlink" : "iface",
+    ifa->iface ? ifa->iface->name : "(none)" , ospf_ism[event]);
 
   switch (event)
   {