union sockunion ip;
if (IS_ZEBRA_DEBUG_PACKET)
- zlog_debug("%s: Notifying Neighbor entry (%u)",
- __PRETTY_FUNCTION__, cmd);
+ zlog_debug("%s: Notifying Neighbor entry (%u)", __func__, cmd);
sockunion_family(&ip) = ipaddr_family(ipaddr);
afi = family2afi(sockunion_family(&ip));
if (zapi_sr_policy_decode(s, &zp) < 0) {
if (IS_ZEBRA_DEBUG_RECV)
zlog_debug("%s: Unable to decode zapi_sr_policy sent",
- __PRETTY_FUNCTION__);
+ __func__);
return;
}
zt = &zp.segment_list;
if (IS_ZEBRA_DEBUG_RECV)
zlog_debug(
"%s: SR-TE tunnel must contain at least one label",
- __PRETTY_FUNCTION__);
+ __func__);
return;
}
if (zapi_sr_policy_decode(s, &zp) < 0) {
if (IS_ZEBRA_DEBUG_RECV)
zlog_debug("%s: Unable to decode zapi_sr_policy sent",
- __PRETTY_FUNCTION__);
+ __func__);
return;
}
policy = zebra_sr_policy_find(zp.color, &zp.endpoint);
if (!policy) {
if (IS_ZEBRA_DEBUG_RECV)
- zlog_debug("%s: Unable to find SR-TE policy",
- __PRETTY_FUNCTION__);
+ zlog_debug("%s: Unable to find SR-TE policy", __func__);
return;
}
if (!is_evpn_enabled()) {
zlog_debug(
- "%s: EVPN not enabled yet we received a es_add zapi call",
- __PRETTY_FUNCTION__);
+ "%s: EVPN not enabled yet we received a es_add zapi call",
+ __func__);
return;
}