}
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;
}
if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, ¬e,
&afi, &safi)) {
- zlog_err("%s : error in msg decode", __PRETTY_FUNCTION__);
+ zlog_err("%s : error in msg decode", __func__);
return -1;
}
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;
}