summaryrefslogtreecommitdiff
path: root/ospfd/ospf_flood.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-05-12 12:03:59 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-05-12 12:03:59 -0400
commita4544597f4f571d8848aacd690bc802a14062108 (patch)
tree79b49368d023fbe514f06ec859079c1c4e6e7589 /ospfd/ospf_flood.c
parent7d7be47ef0a7b0c004be8e768e2b47ab50a921e0 (diff)
ospfd: Use _func__ instead of __PRETTY_FUNCTION__
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_flood.c')
-rw-r--r--ospfd/ospf_flood.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ospfd/ospf_flood.c b/ospfd/ospf_flood.c
index caba03c1b5..7eb587899b 100644
--- a/ospfd/ospf_flood.c
+++ b/ospfd/ospf_flood.c
@@ -388,8 +388,7 @@ int ospf_flood(struct ospf *ospf, struct ospf_neighbor *nbr,
if (IS_DEBUG_OSPF_GR_HELPER)
zlog_debug(
"%s, Received a maxage GRACE-LSA from router %pI4",
- __PRETTY_FUNCTION__,
- &new->data->adv_router);
+ __func__, &new->data->adv_router);
if (current) {
ospf_process_maxage_grace_lsa(ospf, new, nbr);
@@ -397,22 +396,21 @@ int ospf_flood(struct ospf *ospf, struct ospf_neighbor *nbr,
if (IS_DEBUG_OSPF_GR_HELPER)
zlog_debug(
"%s, Grace LSA doesn't exist in lsdb, so discarding grace lsa",
- __PRETTY_FUNCTION__);
+ __func__);
return -1;
}
} else {
if (IS_DEBUG_OSPF_GR_HELPER)
zlog_debug(
"%s, Received a GRACE-LSA from router %pI4",
- __PRETTY_FUNCTION__,
- &new->data->adv_router);
+ __func__, &new->data->adv_router);
if (ospf_process_grace_lsa(ospf, new, nbr)
== OSPF_GR_NOT_HELPER) {
if (IS_DEBUG_OSPF_GR_HELPER)
zlog_debug(
"%s, Not moving to HELPER role, So discarding grace LSA",
- __PRETTY_FUNCTION__);
+ __func__);
return -1;
}
}