]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix unguarded debug
authorMark Stapp <mjs@voltanet.io>
Thu, 25 Mar 2021 17:44:50 +0000 (13:44 -0400)
committerMark Stapp <mjs@voltanet.io>
Fri, 26 Mar 2021 20:00:25 +0000 (16:00 -0400)
Put a debug under a conditional.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
ospf6d/ospf6_asbr.c

index 3497b2665699ceeb6e070800e0f13515f2c3b572..7894924a8e4dbca3468a4334f6df631b6bf60d4b 100644 (file)
@@ -1096,8 +1096,10 @@ void ospf6_asbr_send_externals_to_area(struct ospf6_area *oa)
 
        for (ALL_LSDB(oa->ospf6->lsdb, lsa, lsanext)) {
                if (ntohs(lsa->header->type) == OSPF6_LSTYPE_AS_EXTERNAL) {
-                       zlog_debug("%s: Flooding AS-External LSA %s",
-                                  __func__, lsa->name);
+                       if (IS_OSPF6_DEBUG_ASBR)
+                               zlog_debug("%s: Flooding AS-External LSA %s",
+                                          __func__, lsa->name);
+
                        ospf6_flood_area(NULL, lsa, oa);
                }
        }