summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospfd/ospf_ism.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c
index ab75ab9a1a..d4565b6651 100644
--- a/ospfd/ospf_ism.c
+++ b/ospfd/ospf_ism.c
@@ -223,8 +223,10 @@ int ospf_dr_election(struct ospf_interface *oi)
new_state = ospf_ism_state(oi);
- zlog_debug("DR-Election[1st]: Backup %pI4", &BDR(oi));
- zlog_debug("DR-Election[1st]: DR %pI4", &DR(oi));
+ if (IS_DEBUG_OSPF(ism, ISM_STATUS)) {
+ zlog_debug("DR-Election[1st]: Backup %pI4", &BDR(oi));
+ zlog_debug("DR-Election[1st]: DR %pI4", &DR(oi));
+ }
if (new_state != old_state
&& !(new_state == ISM_DROther && old_state < ISM_DROther)) {
@@ -233,8 +235,10 @@ int ospf_dr_election(struct ospf_interface *oi)
new_state = ospf_ism_state(oi);
- zlog_debug("DR-Election[2nd]: Backup %pI4", &BDR(oi));
- zlog_debug("DR-Election[2nd]: DR %pI4", &DR(oi));
+ if (IS_DEBUG_OSPF(ism, ISM_STATUS)) {
+ zlog_debug("DR-Election[2nd]: Backup %pI4", &BDR(oi));
+ zlog_debug("DR-Election[2nd]: DR %pI4", &DR(oi));
+ }
}
list_delete(&el_list);