From 18722dc98c57af6bfa2d9b967417b65db263e5ca Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 7 Jan 2010 23:03:19 +0100 Subject: Bugfix in DBG call. --- proto/ospf/iface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto/ospf') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index e6cdd1f2..a9c67414 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -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) { -- cgit v1.2.3