summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranlancs <anlan_cs@tom.com>2021-02-08 09:15:22 +0800
committeranlancs <anlan_cs@tom.com>2021-02-08 09:15:32 +0800
commit3655f3549e45123f8b9639b0a38e6fcee4a8ed59 (patch)
tree8f92068510f2fb2c178c55dcbf87b908eeb1e208
parent658186e8b6ad84bd92fa46201901cf75bf3174c2 (diff)
pimd: check debug flag one time
debug flag checked twice, just keep one. Signed-off-by: anlancs <anlan_cs@tom.com>
-rw-r--r--pimd/pim_mroute.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c
index 23259900b7..afd38face3 100644
--- a/pimd/pim_mroute.c
+++ b/pimd/pim_mroute.c
@@ -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;
}