Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ospf6d: guard a couple of debugs #17831

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ospf6d/ospf6_lsdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
}
Expand Down
Loading