summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorckishimo <carles.kishimoto@gmail.com>2020-11-02 09:30:20 +0100
committerCarles Kishimoto Bisbe <carles.kishimoto@cern.ch>2021-01-12 11:34:34 +0100
commitdc135f9eedb1774b628d38b700416fba1a00030b (patch)
tree63244faee1fa22de59a1db36e56fa7f98f67a18f /ospfd/ospf_lsa.c
parentMerge pull request #7828 from mobash-rasool/pim-fixes-3 (diff)
downloadfrr-dc135f9eedb1774b628d38b700416fba1a00030b.tar.xz
frr-dc135f9eedb1774b628d38b700416fba1a00030b.zip
ospfd: cosmetic function names in debug
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index d5eba74fd..d4492634b 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -1756,8 +1756,8 @@ static struct ospf_lsa *ospf_lsa_translated_nssa_new(struct ospf *ospf,
== NULL) {
if (IS_DEBUG_OSPF_NSSA)
zlog_debug(
- "ospf_nssa_translate_originate(): Could not originate Translated Type-5 for %pI4",
- &ei.p.prefix);
+ "%s: Could not originate Translated Type-5 for %pI4",
+ __func__, &ei.p.prefix);
return NULL;
}
@@ -1790,24 +1790,22 @@ struct ospf_lsa *ospf_translated_nssa_originate(struct ospf *ospf,
if ((new = ospf_lsa_translated_nssa_new(ospf, type7)) == NULL) {
if (IS_DEBUG_OSPF_NSSA)
zlog_debug(
- "ospf_translated_nssa_originate(): Could not translate Type-7, Id %pI4, to Type-5",
- &type7->data->id);
+ "%s: Could not translate Type-7, Id %pI4, to Type-5",
+ __func__, &type7->data->id);
return NULL;
}
extnew = (struct as_external_lsa *)new->data;
if ((new = ospf_lsa_install(ospf, NULL, new)) == NULL) {
- flog_warn(
- EC_OSPF_LSA_INSTALL_FAILURE,
- "ospf_lsa_translated_nssa_originate(): Could not install LSA id %pI4",
- &type7->data->id);
+ flog_warn(EC_OSPF_LSA_INSTALL_FAILURE,
+ "%s: Could not install LSA id %pI4", __func__,
+ &type7->data->id);
return NULL;
}
if (IS_DEBUG_OSPF_NSSA) {
- zlog_debug(
- "ospf_translated_nssa_originate(): translated Type 7, installed:");
+ zlog_debug("%s: translated Type 7, installed", __func__);
ospf_lsa_header_dump(new->data);
zlog_debug(" Network mask: %d", ip_masklen(extnew->mask));
zlog_debug(" Forward addr: %pI4",