mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 15:33:34 +00:00
bgpd: Use __func__ instead of hardcoded strings for some functions
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
81a8a58b99
commit
84c320dc01
@ -72,7 +72,7 @@ static void bgp_unlink_nexthop_check(struct bgp_nexthop_cache *bnc)
|
||||
if (LIST_EMPTY(&(bnc->paths)) && !bnc->nht_info) {
|
||||
if (BGP_DEBUG(nht, NHT)) {
|
||||
char buf[PREFIX2STR_BUFFER];
|
||||
zlog_debug("bgp_unlink_nexthop: freeing bnc %s(%u)(%s)",
|
||||
zlog_debug("%s: freeing bnc %s(%u)(%s)", __func__,
|
||||
bnc_str(bnc, buf, PREFIX2STR_BUFFER),
|
||||
bnc->srte_color, bnc->bgp->name_pretty);
|
||||
}
|
||||
|
@ -1836,8 +1836,7 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
|
||||
/* If community is not disabled check the no-export and local. */
|
||||
if (!transparent && bgp_community_filter(peer, piattr)) {
|
||||
if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
|
||||
zlog_debug(
|
||||
"subgrpannouncecheck: community filter check fail");
|
||||
zlog_debug("%s: community filter check fail", __func__);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -6975,8 +6975,8 @@ int peer_ttl_security_hops_set(struct peer *peer, int gtsm_hops)
|
||||
struct listnode *node, *nnode;
|
||||
int ret;
|
||||
|
||||
zlog_debug("peer_ttl_security_hops_set: set gtsm_hops to %d for %s",
|
||||
gtsm_hops, peer->host);
|
||||
zlog_debug("%s: set gtsm_hops to %d for %s", __func__, gtsm_hops,
|
||||
peer->host);
|
||||
|
||||
/* We cannot configure ttl-security hops when ebgp-multihop is already
|
||||
set. For non peer-groups, the check is simple. For peer-groups,
|
||||
@ -7078,8 +7078,7 @@ int peer_ttl_security_hops_unset(struct peer *peer)
|
||||
struct listnode *node, *nnode;
|
||||
int ret = 0;
|
||||
|
||||
zlog_debug("peer_ttl_security_hops_unset: set gtsm_hops to zero for %s",
|
||||
peer->host);
|
||||
zlog_debug("%s: set gtsm_hops to zero for %s", __func__, peer->host);
|
||||
|
||||
/* if a peer-group member, then reset to peer-group default rather than
|
||||
* 0 */
|
||||
|
Loading…
Reference in New Issue
Block a user