]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: use __func__ instead of __PRETTY_FUNCTION__
authorDonald Sharp <sharpd@nvidia.com>
Wed, 12 May 2021 16:00:23 +0000 (12:00 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 12 May 2021 16:00:23 +0000 (12:00 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_nht.c
bgpd/bgp_zebra.c

index dc2b0b679b1a529d512853eb429114d44c719884..e94f63541d9790c470ff6e0ea323988273269328 100644 (file)
@@ -620,8 +620,8 @@ void bgp_parse_nexthop_update(int command, vrf_id_t vrf_id)
        }
 
        if (!zapi_nexthop_update_decode(zclient->ibuf, &nhr)) {
-               zlog_err("%s[%s]: Failure to decode nexthop update",
-                        __PRETTY_FUNCTION__, bgp->name_pretty);
+               zlog_err("%s[%s]: Failure to decode nexthop update", __func__,
+                        bgp->name_pretty);
                return;
        }
 
index 45b60b490371f5a2f8f8eb4abf3cf77e8a23322e..05d00a48514f234ac2ebdb7735accea45f1f58d0 100644 (file)
@@ -2394,7 +2394,7 @@ static int bgp_zebra_route_notify_owner(int command, struct zclient *zclient,
 
        if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, &note,
                                      &afi, &safi)) {
-               zlog_err("%s : error in msg decode", __PRETTY_FUNCTION__);
+               zlog_err("%s : error in msg decode", __func__);
                return -1;
        }
 
@@ -2402,8 +2402,8 @@ static int bgp_zebra_route_notify_owner(int command, struct zclient *zclient,
        bgp = bgp_lookup_by_vrf_id(vrf_id);
        if (!bgp) {
                flog_err(EC_BGP_INVALID_BGP_INSTANCE,
-                        "%s : bgp instance not found vrf %d",
-                        __PRETTY_FUNCTION__, vrf_id);
+                        "%s : bgp instance not found vrf %d", __func__,
+                        vrf_id);
                return -1;
        }