summaryrefslogtreecommitdiff
path: root/pimd/pim_oil.c
diff options
context:
space:
mode:
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2019-11-15 08:47:33 -0800
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2019-11-15 08:47:33 -0800
commit1b249e70979b5cd625dc221a77c82f8b10236066 (patch)
tree791e675827b02b335e336368fc8347fdabdd87ce /pimd/pim_oil.c
parenta6f6907031a98c8b801c5b435aad53cd177bc680 (diff)
pimd: update add_oif and del_oif debugs to print caller
These logs were printing file name which has little value (is always pim_oil.c). Instead print the caller. add_oif/del_oif are being called directly from one too many. Instead OIF setup needs to be consolidated via the PIM state machine. These debugs are expected to help in understanding what needs to be cleaned up. Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_oil.c')
-rw-r--r--pimd/pim_oil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pimd/pim_oil.c b/pimd/pim_oil.c
index d142934916..7e88ea4fb6 100644
--- a/pimd/pim_oil.c
+++ b/pimd/pim_oil.c
@@ -273,7 +273,7 @@ void pim_channel_oil_del(struct channel_oil *c_oil, const char *name)
}
int pim_channel_del_oif(struct channel_oil *channel_oil, struct interface *oif,
- uint32_t proto_mask)
+ uint32_t proto_mask, const char *caller)
{
struct pim_interface *pim_ifp;
@@ -363,8 +363,8 @@ int pim_channel_del_oif(struct channel_oil *channel_oil, struct interface *oif,
pim_inet4_dump("<source?>", channel_oil->oil.mfcc_origin,
source_str, sizeof(source_str));
zlog_debug(
- "%s %s: (S,G)=(%s,%s): proto_mask=%u IIF:%d OIF=%s vif_index=%d",
- __FILE__, __PRETTY_FUNCTION__, source_str, group_str,
+ "%s(%s): (S,G)=(%s,%s): proto_mask=%u IIF:%d OIF=%s vif_index=%d",
+ __PRETTY_FUNCTION__, caller, source_str, group_str,
proto_mask, channel_oil->oil.mfcc_parent, oif->name,
pim_ifp->mroute_vif_index);
}
@@ -374,7 +374,7 @@ int pim_channel_del_oif(struct channel_oil *channel_oil, struct interface *oif,
int pim_channel_add_oif(struct channel_oil *channel_oil, struct interface *oif,
- uint32_t proto_mask)
+ uint32_t proto_mask, const char *caller)
{
struct pim_interface *pim_ifp;
int old_ttl;
@@ -557,8 +557,8 @@ int pim_channel_add_oif(struct channel_oil *channel_oil, struct interface *oif,
pim_inet4_dump("<source?>", channel_oil->oil.mfcc_origin,
source_str, sizeof(source_str));
zlog_debug(
- "%s %s: (S,G)=(%s,%s): proto_mask=%u OIF=%s vif_index=%d: DONE",
- __FILE__, __PRETTY_FUNCTION__, source_str, group_str,
+ "%s(%s): (S,G)=(%s,%s): proto_mask=%u OIF=%s vif_index=%d: DONE",
+ __PRETTY_FUNCTION__, caller, source_str, group_str,
proto_mask, oif->name, pim_ifp->mroute_vif_index);
}