diff options
author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-01-10 00:26:10 +0100 |
---|---|---|
committer | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2025-01-10 00:26:10 +0100 |
commit | 83990851bac980f735199d46d65875a5a28b26c8 (patch) | |
tree | 2d60b833b3dcd6ed87133596a22d76497dcd22ea /ospf6d | |
parent | Merge pull request #17805 from donaldsharp/2_test_fixes (diff) | |
download | frr-83990851bac980f735199d46d65875a5a28b26c8.tar.xz frr-83990851bac980f735199d46d65875a5a28b26c8.zip |
ospf6d: guard a couple of debugs
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_lsdb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c index e5de30484..3215d51a7 100644 --- a/ospf6d/ospf6_lsdb.c +++ b/ospf6d/ospf6_lsdb.c @@ -258,7 +258,8 @@ struct ospf6_lsa *ospf6_lsdb_lookup_next(uint16_t type, uint32_t id, ospf6_lsdb_set_key(&key, &adv_router, sizeof(adv_router)); ospf6_lsdb_set_key(&key, &id, sizeof(id)); - zlog_debug("lsdb_lookup_next: key: %pFX", &key); + if (OSPF6_LSA_DEBUG) + zlog_debug("lsdb_lookup_next: key: %pFX", &key); node = route_table_get_next(lsdb->table, &key); @@ -398,7 +399,9 @@ int ospf6_lsdb_maxage_remover(struct ospf6_lsdb *lsdb) EVENT_OFF(lsa->refresh); event_execute(master, ospf6_lsa_refresh, lsa, 0, NULL); } else { - zlog_debug("calling ospf6_lsdb_remove %s", lsa->name); + if (IS_OSPF6_DEBUG_LSA_TYPE(lsa->header->type)) + zlog_debug("calling ospf6_lsdb_remove %s", lsa->name); + ospf6_lsdb_remove(lsa, lsdb); } } |