summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-09-02 12:21:34 +0200
committerGitHub <noreply@github.com>2022-09-02 12:21:34 +0200
commit5761ca2faac32274c8ff5d55a4a81e1c0d12bb60 (patch)
tree8f12f2585c41cfe69f15dc6f0c17b15b36397c7b /bgpd/bgp_fsm.c
parentMerge pull request #11893 from kraj/master (diff)
parentbgpd: changes for code maintainability (diff)
downloadfrr-5761ca2faac32274c8ff5d55a4a81e1c0d12bb60.tar.xz
frr-5761ca2faac32274c8ff5d55a4a81e1c0d12bb60.zip
Merge pull request #11894 from sri-mohan1/sri-bgp-dbg1
bgpd: changes for code maintainability
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 586895512..1164546df 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -958,7 +958,7 @@ void bgp_start_routeadv(struct bgp *bgp)
struct listnode *node, *nnode;
struct peer *peer;
- zlog_info("bgp_start_routeadv(), update hold status %d",
+ zlog_info("%s, update hold status %d", __func__,
bgp->main_peers_update_hold);
if (bgp->main_peers_update_hold)
@@ -1692,9 +1692,8 @@ static void bgp_connect_check(struct thread *thread)
static int bgp_connect_success(struct peer *peer)
{
if (peer->fd < 0) {
- flog_err(EC_BGP_CONNECT,
- "bgp_connect_success peer's fd is negative value %d",
- peer->fd);
+ flog_err(EC_BGP_CONNECT, "%s peer's fd is negative value %d",
+ __func__, peer->fd);
bgp_stop(peer);
return -1;
}
@@ -1915,7 +1914,7 @@ int bgp_start(struct peer *peer)
peer->host, peer->fd);
if (peer->fd < 0) {
flog_err(EC_BGP_FSM,
- "bgp_start peer's fd is negative value %d",
+ "%s peer's fd is negative value %d", __func__,
peer->fd);
return -1;
}