]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Cleanup extra paranthesis around S,G printout 4040/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 28 Mar 2019 19:44:58 +0000 (15:44 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 28 Mar 2019 19:51:49 +0000 (15:51 -0400)
When we are displaying S,G string data we already auto
display the string as (S,G) no need to have ((S,G)).
Cleanup some that were found during log look through.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_ifchannel.c
pimd/pim_mroute.c
pimd/pim_register.c
pimd/pim_upstream.c
pimd/pim_zlookup.c

index 14ce8d7d9f63d9f2da391becf76dd17acae622ba..0fe4110f6053442cd66d9b66a359d5afc75e3868 100644 (file)
@@ -911,7 +911,7 @@ void pim_ifchannel_prune(struct interface *ifp, struct in_addr upstream,
        if (!ch && !(source_flags & PIM_ENCODE_RPT_BIT)) {
                if (PIM_DEBUG_TRACE)
                        zlog_debug(
-                               "%s: Received prune with no relevant ifchannel %s(%s) state: %d",
+                               "%s: Received prune with no relevant ifchannel %s%s state: %d",
                                __PRETTY_FUNCTION__, ifp->name,
                                pim_str_sg_dump(sg), source_flags);
                return;
index 67b1a95f74789c8dac64d6f193c6e69a627e6279..bba4031744bf4c3b6c9b6a1c55153c8b1163f40e 100644 (file)
@@ -1030,7 +1030,7 @@ void pim_mroute_update_counters(struct channel_oil *c_oil)
                        sg.grp = c_oil->oil.mfcc_mcastgrp;
                        if (PIM_DEBUG_MROUTE)
                                zlog_debug(
-                                       "Channel(%s) is not installed no need to collect data from kernel",
+                                       "Channel%s is not installed no need to collect data from kernel",
                                        pim_str_sg_dump(&sg));
                }
                return;
@@ -1049,7 +1049,7 @@ void pim_mroute_update_counters(struct channel_oil *c_oil)
                        sg.grp = c_oil->oil.mfcc_mcastgrp;
 
                        zlog_warn(
-                               "ioctl(SIOCGETSGCNT=%lu) failure for (S,G)=(%s): errno=%d: %s",
+                               "ioctl(SIOCGETSGCNT=%lu) failure for (S,G)=%s: errno=%d: %s",
                                (unsigned long)SIOCGETSGCNT,
                                pim_str_sg_dump(&sg), errno,
                                safe_strerror(errno));
index a5b1c577e749b3408dd6657c531d5a862ed6339f..386ed1d4240775ffeab660e64fbd86d208734ef1 100644 (file)
@@ -329,9 +329,8 @@ int pim_register_recv(struct interface *ifp, struct in_addr dest_addr,
                char src_str[INET_ADDRSTRLEN];
 
                pim_inet4_dump("<src?>", src_addr, src_str, sizeof(src_str));
-               zlog_debug(
-                       "Received Register message(%s) from %s on %s, rp: %d",
-                       pim_str_sg_dump(&sg), src_str, ifp->name, i_am_rp);
+               zlog_debug("Received Register message%s from %s on %s, rp: %d",
+                          pim_str_sg_dump(&sg), src_str, ifp->name, i_am_rp);
        }
 
        if (i_am_rp
index cb89e30a5024c6778d4a83edd2d96fc7028e5fcc..2a0804e10bc5707d85c1e86f33f17f22c9306352 100644 (file)
@@ -1682,7 +1682,7 @@ static void pim_upstream_sg_running(void *arg)
        // No packet can have arrived here if this is the case
        if (!up->channel_oil->installed) {
                if (PIM_DEBUG_TRACE)
-                       zlog_debug("%s: %s[%s] is not installed in mroute",
+                       zlog_debug("%s: %s%s is not installed in mroute",
                                   __PRETTY_FUNCTION__, up->sg_str,
                                   pim->vrf->name);
                return;
index 0ffe313c17adccf826ad2d96a4fcbce2093bdbfb..6d93a40b913d95c0cdd63b60f189ef0e4890f504 100644 (file)
@@ -499,7 +499,7 @@ int pim_zlookup_sg_statistics(struct channel_oil *c_oil)
                more.src = c_oil->oil.mfcc_origin;
                more.grp = c_oil->oil.mfcc_mcastgrp;
                zlog_debug(
-                       "Sending Request for New Channel Oil Information(%s) VIIF %d(%s)",
+                       "Sending Request for New Channel Oil Information%s VIIF %d(%s)",
                        pim_str_sg_dump(&more), c_oil->oil.mfcc_parent,
                        c_oil->pim->vrf->name);
        }