summaryrefslogtreecommitdiffstats
path: root/lib/bfd.c
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@tom.com>2022-01-08 11:45:59 +0100
committeranlan_cs <anlan_cs@tom.com>2022-01-08 12:01:08 +0100
commit8b3fd12cda71440d5e58edbf6927b254a9a48eb3 (patch)
tree60967a12156d9d41fbd66d5a011c00c2852f4621 /lib/bfd.c
parentMerge pull request #10301 from donaldsharp/pim_multicast_fix (diff)
downloadfrr-8b3fd12cda71440d5e58edbf6927b254a9a48eb3.tar.xz
frr-8b3fd12cda71440d5e58edbf6927b254a9a48eb3.zip
lib: small debug adjustment for bfd
Just use `__func__` to display function name. Signed-off-by: anlan_cs <anlan_cs@tom.com>
Diffstat (limited to 'lib/bfd.c')
-rw-r--r--lib/bfd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index dea39d2e2..f3fc47377 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -143,8 +143,8 @@ static struct interface *bfd_get_peer_info(struct stream *s, struct prefix *dp,
if (ifp == NULL) {
if (bsglobal.debugging)
zlog_debug(
- "zebra_interface_bfd_read: Can't find interface by ifindex: %d ",
- ifindex);
+ "%s: Can't find interface by ifindex: %d ",
+ __func__, ifindex);
return NULL;
}
}
@@ -251,8 +251,8 @@ void bfd_client_sendmsg(struct zclient *zclient, int command,
if (ret == ZCLIENT_SEND_FAILURE) {
if (bsglobal.debugging)
zlog_debug(
- "bfd_client_sendmsg %ld: zclient_send_message() failed",
- (long)getpid());
+ "%s: %ld: zclient_send_message() failed",
+ __func__, (long)getpid());
return;
}