diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-31 23:16:54 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-02 13:57:13 +0200 |
commit | 08f4f9013c98d113d752c5e3323e132c92278f5c (patch) | |
tree | a170a4e6b5f06d201d4b5d8a2b06e67904247bd3 /pimd/pim_mroute.c | |
parent | pimd: Convert to using a RB tree for the pim_ifp ifchannel_list (diff) | |
download | frr-08f4f9013c98d113d752c5e3323e132c92278f5c.tar.xz frr-08f4f9013c98d113d752c5e3323e132c92278f5c.zip |
pimd: Clean up mroute_add_vif debugging
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_mroute.c')
-rw-r--r-- | pimd/pim_mroute.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index beb4606a5..d500ffa8d 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -778,6 +778,10 @@ int pim_mroute_add_vif(struct interface *ifp, struct in_addr ifaddr, struct vifctl vc; int err; + if (PIM_DEBUG_MROUTE) + zlog_debug("%s: Add Vif %d (%s)", __PRETTY_FUNCTION__, + pim_ifp->mroute_vif_index, ifp->name); + memset(&vc, 0, sizeof(vc)); vc.vifc_vifi = pim_ifp->mroute_vif_index; #ifdef VIFF_USE_IFINDEX @@ -811,8 +815,8 @@ int pim_mroute_add_vif(struct interface *ifp, struct in_addr ifaddr, sizeof(ifaddr_str)); zlog_warn( - "%s %s: failure: setsockopt(fd=%d,IPPROTO_IP,MRT_ADD_VIF,vif_index=%d,ifaddr=%s,flag=%d): errno=%d: %s", - __FILE__, __PRETTY_FUNCTION__, + "%s: failure: setsockopt(fd=%d,IPPROTO_IP,MRT_ADD_VIF,vif_index=%d,ifaddr=%s,flag=%d): errno=%d: %s", + __PRETTY_FUNCTION__, pim_ifp->pim->mroute_socket, ifp->ifindex, ifaddr_str, flags, errno, safe_strerror(errno)); return -2; @@ -828,8 +832,8 @@ int pim_mroute_del_vif(struct interface *ifp) int err; if (PIM_DEBUG_MROUTE) - zlog_debug("%s %s: Del Vif %d (%s) ", __FILE__, - __PRETTY_FUNCTION__, pim_ifp->mroute_vif_index, + zlog_debug("%s: Del Vif %d (%s)", __PRETTY_FUNCTION__, + pim_ifp->mroute_vif_index, ifp->name); memset(&vc, 0, sizeof(vc)); |