zebra: Use __func__ instead of __PRETTY_FUNCTION__

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-05-12 12:02:05 -04:00
parent cc42c4f00c
commit 7d7be47ef0
3 changed files with 8 additions and 10 deletions

View File

@ -985,8 +985,7 @@ void zsend_nhrp_neighbor_notify(int cmd, struct interface *ifp,
union sockunion ip; union sockunion ip;
if (IS_ZEBRA_DEBUG_PACKET) if (IS_ZEBRA_DEBUG_PACKET)
zlog_debug("%s: Notifying Neighbor entry (%u)", zlog_debug("%s: Notifying Neighbor entry (%u)", __func__, cmd);
__PRETTY_FUNCTION__, cmd);
sockunion_family(&ip) = ipaddr_family(ipaddr); sockunion_family(&ip) = ipaddr_family(ipaddr);
afi = family2afi(sockunion_family(&ip)); afi = family2afi(sockunion_family(&ip));
@ -2509,7 +2508,7 @@ static void zread_sr_policy_set(ZAPI_HANDLER_ARGS)
if (zapi_sr_policy_decode(s, &zp) < 0) { if (zapi_sr_policy_decode(s, &zp) < 0) {
if (IS_ZEBRA_DEBUG_RECV) if (IS_ZEBRA_DEBUG_RECV)
zlog_debug("%s: Unable to decode zapi_sr_policy sent", zlog_debug("%s: Unable to decode zapi_sr_policy sent",
__PRETTY_FUNCTION__); __func__);
return; return;
} }
zt = &zp.segment_list; zt = &zp.segment_list;
@ -2517,7 +2516,7 @@ static void zread_sr_policy_set(ZAPI_HANDLER_ARGS)
if (IS_ZEBRA_DEBUG_RECV) if (IS_ZEBRA_DEBUG_RECV)
zlog_debug( zlog_debug(
"%s: SR-TE tunnel must contain at least one label", "%s: SR-TE tunnel must contain at least one label",
__PRETTY_FUNCTION__); __func__);
return; return;
} }
@ -2544,7 +2543,7 @@ static void zread_sr_policy_delete(ZAPI_HANDLER_ARGS)
if (zapi_sr_policy_decode(s, &zp) < 0) { if (zapi_sr_policy_decode(s, &zp) < 0) {
if (IS_ZEBRA_DEBUG_RECV) if (IS_ZEBRA_DEBUG_RECV)
zlog_debug("%s: Unable to decode zapi_sr_policy sent", zlog_debug("%s: Unable to decode zapi_sr_policy sent",
__PRETTY_FUNCTION__); __func__);
return; return;
} }
@ -2554,8 +2553,7 @@ static void zread_sr_policy_delete(ZAPI_HANDLER_ARGS)
policy = zebra_sr_policy_find(zp.color, &zp.endpoint); policy = zebra_sr_policy_find(zp.color, &zp.endpoint);
if (!policy) { if (!policy) {
if (IS_ZEBRA_DEBUG_RECV) if (IS_ZEBRA_DEBUG_RECV)
zlog_debug("%s: Unable to find SR-TE policy", zlog_debug("%s: Unable to find SR-TE policy", __func__);
__PRETTY_FUNCTION__);
return; return;
} }

View File

@ -2477,7 +2477,7 @@ void zebra_evpn_proc_remote_es(ZAPI_HANDLER_ARGS)
if (!is_evpn_enabled()) { if (!is_evpn_enabled()) {
zlog_debug( zlog_debug(
"%s: EVPN not enabled yet we received a es_add zapi call", "%s: EVPN not enabled yet we received a es_add zapi call",
__PRETTY_FUNCTION__); __func__);
return; return;
} }

View File

@ -512,7 +512,7 @@ void zebra_pbr_add_rule(struct zebra_pbr_rule *rule)
if (pbr_rule_release(found)) if (pbr_rule_release(found))
zlog_debug( zlog_debug(
"%s: Rule being updated we know nothing about", "%s: Rule being updated we know nothing about",
__PRETTY_FUNCTION__); __func__);
} else { } else {
if (IS_ZEBRA_DEBUG_PBR) if (IS_ZEBRA_DEBUG_PBR)