]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: check debug flag one time 8030/head
authoranlancs <anlan_cs@tom.com>
Mon, 8 Feb 2021 01:15:22 +0000 (09:15 +0800)
committeranlancs <anlan_cs@tom.com>
Mon, 8 Feb 2021 01:15:32 +0000 (09:15 +0800)
    debug flag checked twice, just keep one.

Signed-off-by: anlancs <anlan_cs@tom.com>
pimd/pim_mroute.c

index 23259900b7d7925aea2854d47bab2cfeca0f0bb9..afd38face303015063be8b5bea560889a0a376d5 100644 (file)
@@ -1221,10 +1221,9 @@ void pim_mroute_update_counters(struct channel_oil *c_oil)
 
                        sg.src = c_oil->oil.mfcc_origin;
                        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",
-                                       pim_str_sg_dump(&sg));
+                       zlog_debug(
+                               "Channel%s is not installed no need to collect data from kernel",
+                               pim_str_sg_dump(&sg));
                }
                return;
        }