fix a debug where display parent interface name
only if it exists.
Ticket:CM-27733
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
struct interface *ifp;
ifp = if_lookup_by_index_all_vrf(zif->link_ifindex);
- zlog_debug("macvlan %s parent link is not found. Parent index %d ifp %s",
- ifp->name, zif->link_ifindex,
- ifp ? ifp->name : " ");
+ zlog_debug("macvlan parent link is not found. Parent index %d ifp %s",
+ zif->link_ifindex, ifp ? ifp->name : " ");
}
return;
}