]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: small debug adjustment for bfd 10306/head
authoranlan_cs <anlan_cs@tom.com>
Sat, 8 Jan 2022 10:45:59 +0000 (05:45 -0500)
committeranlan_cs <anlan_cs@tom.com>
Sat, 8 Jan 2022 11:01:08 +0000 (06:01 -0500)
Just use `__func__` to display function name.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
lib/bfd.c

index dea39d2e2b59509f8e93a7e6b32fb1b1206fc644..f3fc4737739f78dfa87759c78720d2d06fad72a0 100644 (file)
--- 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;
        }