forked from Mirror/frr
ospfd: cosmetic function names in debug
Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
This commit is contained in:
parent
aa6fdabb73
commit
dc135f9eed
|
@ -1756,8 +1756,8 @@ static struct ospf_lsa *ospf_lsa_translated_nssa_new(struct ospf *ospf,
|
||||||
== NULL) {
|
== NULL) {
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
if (IS_DEBUG_OSPF_NSSA)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"ospf_nssa_translate_originate(): Could not originate Translated Type-5 for %pI4",
|
"%s: Could not originate Translated Type-5 for %pI4",
|
||||||
&ei.p.prefix);
|
__func__, &ei.p.prefix);
|
||||||
return NULL;
|
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 ((new = ospf_lsa_translated_nssa_new(ospf, type7)) == NULL) {
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
if (IS_DEBUG_OSPF_NSSA)
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"ospf_translated_nssa_originate(): Could not translate Type-7, Id %pI4, to Type-5",
|
"%s: Could not translate Type-7, Id %pI4, to Type-5",
|
||||||
&type7->data->id);
|
__func__, &type7->data->id);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
extnew = (struct as_external_lsa *)new->data;
|
extnew = (struct as_external_lsa *)new->data;
|
||||||
|
|
||||||
if ((new = ospf_lsa_install(ospf, NULL, new)) == NULL) {
|
if ((new = ospf_lsa_install(ospf, NULL, new)) == NULL) {
|
||||||
flog_warn(
|
flog_warn(EC_OSPF_LSA_INSTALL_FAILURE,
|
||||||
EC_OSPF_LSA_INSTALL_FAILURE,
|
"%s: Could not install LSA id %pI4", __func__,
|
||||||
"ospf_lsa_translated_nssa_originate(): Could not install LSA id %pI4",
|
|
||||||
&type7->data->id);
|
&type7->data->id);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_DEBUG_OSPF_NSSA) {
|
if (IS_DEBUG_OSPF_NSSA) {
|
||||||
zlog_debug(
|
zlog_debug("%s: translated Type 7, installed", __func__);
|
||||||
"ospf_translated_nssa_originate(): translated Type 7, installed:");
|
|
||||||
ospf_lsa_header_dump(new->data);
|
ospf_lsa_header_dump(new->data);
|
||||||
zlog_debug(" Network mask: %d", ip_masklen(extnew->mask));
|
zlog_debug(" Network mask: %d", ip_masklen(extnew->mask));
|
||||||
zlog_debug(" Forward addr: %pI4",
|
zlog_debug(" Forward addr: %pI4",
|
||||||
|
|
Loading…
Reference in a new issue