]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Cleanup weird indentation
authorDonald Sharp <sharpd@nvidia.com>
Thu, 6 Jan 2022 12:30:09 +0000 (07:30 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Sat, 8 Jan 2022 12:11:07 +0000 (07:11 -0500)
The zlog_warn used to be bounded by a debug guard
but the debug guard was removed but the code was
never fixed up to remove the open and close paranthesis.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_oil.c

index a3ca44bb501a975c7d5618d9ab038793f6ec261b..c6fd6c4905a574444a2393f16676e1c553b09169 100644 (file)
@@ -490,23 +490,21 @@ int pim_channel_add_oif(struct channel_oil *channel_oil, struct interface *oif,
                /* Check the OIF really exists before returning, and only log
                   warning otherwise */
                if (channel_oil->oil.mfcc_ttls[pim_ifp->mroute_vif_index] < 1) {
-                       {
-                               char group_str[INET_ADDRSTRLEN];
-                               char source_str[INET_ADDRSTRLEN];
-                               pim_inet4_dump("<group?>",
-                                              channel_oil->oil.mfcc_mcastgrp,
-                                              group_str, sizeof(group_str));
-                               pim_inet4_dump("<source?>",
-                                              channel_oil->oil.mfcc_origin,
-                                              source_str, sizeof(source_str));
-                               zlog_warn(
-                                       "%s %s: new protocol mask %u requested nonexistent OIF %s (vif_index=%d, min_ttl=%d) for channel (S,G)=(%s,%s)",
-                                       __FILE__, __func__, proto_mask,
-                                       oif->name, pim_ifp->mroute_vif_index,
-                                       channel_oil->oil.mfcc_ttls
-                                               [pim_ifp->mroute_vif_index],
-                                       source_str, group_str);
-                       }
+                       char group_str[INET_ADDRSTRLEN];
+                       char source_str[INET_ADDRSTRLEN];
+                       pim_inet4_dump("<group?>",
+                                      channel_oil->oil.mfcc_mcastgrp,
+                                      group_str, sizeof(group_str));
+                       pim_inet4_dump("<source?>",
+                                      channel_oil->oil.mfcc_origin, source_str,
+                                      sizeof(source_str));
+                       zlog_warn(
+                               "%s %s: new protocol mask %u requested nonexistent OIF %s (vif_index=%d, min_ttl=%d) for channel (S,G)=(%s,%s)",
+                               __FILE__, __func__, proto_mask, oif->name,
+                               pim_ifp->mroute_vif_index,
+                               channel_oil->oil
+                                       .mfcc_ttls[pim_ifp->mroute_vif_index],
+                               source_str, group_str);
                }
 
                if (PIM_DEBUG_MROUTE) {