mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 22:25:41 +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 (LIST_EMPTY(&(bnc->paths)) && !bnc->nht_info) {
|
||||||
if (BGP_DEBUG(nht, NHT)) {
|
if (BGP_DEBUG(nht, NHT)) {
|
||||||
char buf[PREFIX2STR_BUFFER];
|
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_str(bnc, buf, PREFIX2STR_BUFFER),
|
||||||
bnc->srte_color, bnc->bgp->name_pretty);
|
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 community is not disabled check the no-export and local. */
|
||||||
if (!transparent && bgp_community_filter(peer, piattr)) {
|
if (!transparent && bgp_community_filter(peer, piattr)) {
|
||||||
if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
|
if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
|
||||||
zlog_debug(
|
zlog_debug("%s: community filter check fail", __func__);
|
||||||
"subgrpannouncecheck: community filter check fail");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6975,8 +6975,8 @@ int peer_ttl_security_hops_set(struct peer *peer, int gtsm_hops)
|
|||||||
struct listnode *node, *nnode;
|
struct listnode *node, *nnode;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
zlog_debug("peer_ttl_security_hops_set: set gtsm_hops to %d for %s",
|
zlog_debug("%s: set gtsm_hops to %d for %s", __func__, gtsm_hops,
|
||||||
gtsm_hops, peer->host);
|
peer->host);
|
||||||
|
|
||||||
/* We cannot configure ttl-security hops when ebgp-multihop is already
|
/* We cannot configure ttl-security hops when ebgp-multihop is already
|
||||||
set. For non peer-groups, the check is simple. For peer-groups,
|
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;
|
struct listnode *node, *nnode;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
zlog_debug("peer_ttl_security_hops_unset: set gtsm_hops to zero for %s",
|
zlog_debug("%s: set gtsm_hops to zero for %s", __func__, peer->host);
|
||||||
peer->host);
|
|
||||||
|
|
||||||
/* if a peer-group member, then reset to peer-group default rather than
|
/* if a peer-group member, then reset to peer-group default rather than
|
||||||
* 0 */
|
* 0 */
|
||||||
|
Loading…
Reference in New Issue
Block a user