summaryrefslogtreecommitdiffstats
path: root/isisd/isis_dr.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2022-04-20 13:50:39 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2022-04-20 16:37:20 +0200
commite6605a89f16555bdc8c8a2a6104a7d05f0fecd94 (patch)
tree268a558da5ba1cd2543efc6576500d39181f34a6 /isisd/isis_dr.c
parentMerge pull request #10979 from opensourcerouting/pim-ssm-clean (diff)
downloadfrr-e6605a89f16555bdc8c8a2a6104a7d05f0fecd94.tar.xz
frr-e6605a89f16555bdc8c8a2a6104a7d05f0fecd94.zip
isisd: isis_dr_resign() trace braced with debug isis events
debug isis events will also be used to not display isis_dr_resign() event trace. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'isisd/isis_dr.c')
-rw-r--r--isisd/isis_dr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_dr.c b/isisd/isis_dr.c
index 78197974d..27b738807 100644
--- a/isisd/isis_dr.c
+++ b/isisd/isis_dr.c
@@ -217,7 +217,8 @@ int isis_dr_resign(struct isis_circuit *circuit, int level)
{
uint8_t id[ISIS_SYS_ID_LEN + 2];
- zlog_debug("isis_dr_resign l%d", level);
+ if (IS_DEBUG_EVENTS)
+ zlog_debug("isis_dr_resign l%d", level);
circuit->u.bc.is_dr[level - 1] = 0;
circuit->u.bc.run_dr_elect[level - 1] = 0;