]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_sr.c
*: rename zlog_fer -> flog_err
[mirror_frr.git] / ospfd / ospf_sr.c
index 629edbf370641fbf6225aa3f8bef5a7c7765a2bd..6cb697f3abb2607b50c4b3ac31861decb61ef146 100644 (file)
@@ -821,7 +821,7 @@ static struct sr_prefix *get_ext_prefix_sid(struct tlv_header *tlvh)
                case EXT_SUBTLV_PREFIX_SID:
                        psid = (struct ext_subtlv_prefix_sid *)sub_tlvh;
                        if (psid->algorithm != SR_ALGORITHM_SPF) {
-                               zlog_ferr(OSPF_ERR_SR_INVALID_ALGORITHM,
+                               flog_err(OSPF_ERR_SR_INVALID_ALGORITHM,
                                          "SR (%s): Unsupported Algorithm",
                                          __func__);
                                XFREE(MTYPE_OSPF_SR_PARAMS, srp);
@@ -1102,7 +1102,7 @@ void ospf_sr_ri_lsa_update(struct ospf_lsa *lsa)
                return;
 
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR DataBase", __func__);
                return;
        }
@@ -1113,14 +1113,14 @@ void ospf_sr_ri_lsa_update(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (srn == NULL) {
-               zlog_ferr(OSPF_ERR_SR_NODE_CREATE,
+               flog_err(OSPF_ERR_SR_NODE_CREATE,
                          "SR (%s): Abort! can't create SR node in hash table",
                          __func__);
                return;
        }
 
        if ((srn->instance != 0) && (srn->instance != ntohl(lsah->id.s_addr))) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_LSA_ID,
+               flog_err(OSPF_ERR_SR_INVALID_LSA_ID,
                          "SR (%s): Abort! Wrong "
                          "LSA ID 4.0.0.%u for SR node %s/%u",
                          __func__, GET_OPAQUE_ID(ntohl(lsah->id.s_addr)),
@@ -1213,7 +1213,7 @@ void ospf_sr_ri_lsa_delete(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR Data Base", __func__);
                return;
        }
@@ -1223,14 +1223,14 @@ void ospf_sr_ri_lsa_delete(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (srn == NULL) {
-               zlog_ferr(OSPF_ERR_SR_NODE_CREATE,
+               flog_err(OSPF_ERR_SR_NODE_CREATE,
                          "SR (%s): Abort! no entry in SRDB for SR Node %s",
                          __func__, inet_ntoa(lsah->adv_router));
                return;
        }
 
        if ((srn->instance != 0) && (srn->instance != ntohl(lsah->id.s_addr))) {
-               zlog_ferr(
+               flog_err(
                        OSPF_ERR_SR_INVALID_LSA_ID,
                        "SR (%s): Abort! Wrong LSA ID 4.0.0.%u for SR node %s",
                        __func__, GET_OPAQUE_ID(ntohl(lsah->id.s_addr)),
@@ -1260,7 +1260,7 @@ void ospf_sr_ext_link_lsa_update(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR DataBase", __func__);
                return;
        }
@@ -1272,7 +1272,7 @@ void ospf_sr_ext_link_lsa_update(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (srn == NULL) {
-               zlog_ferr(OSPF_ERR_SR_NODE_CREATE,
+               flog_err(OSPF_ERR_SR_NODE_CREATE,
                          "SR (%s): Abort! can't create SR node in hash table",
                          __func__);
                return;
@@ -1312,7 +1312,7 @@ void ospf_sr_ext_link_lsa_delete(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR DataBase", __func__);
                return;
        }
@@ -1370,7 +1370,7 @@ void ospf_sr_ext_prefix_lsa_update(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR DataBase", __func__);
                return;
        }
@@ -1382,7 +1382,7 @@ void ospf_sr_ext_prefix_lsa_update(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (srn == NULL) {
-               zlog_ferr(OSPF_ERR_SR_NODE_CREATE,
+               flog_err(OSPF_ERR_SR_NODE_CREATE,
                          "SR (%s): Abort! can't create SR node in hash table",
                          __func__);
                return;
@@ -1423,7 +1423,7 @@ void ospf_sr_ext_prefix_lsa_delete(struct ospf_lsa *lsa)
 
        /* Sanity check */
        if (OspfSR.neighbors == NULL) {
-               zlog_ferr(OSPF_ERR_SR_INVALID_DB,
+               flog_err(OSPF_ERR_SR_INVALID_DB,
                          "SR (%s): Abort! no valid SR DataBase", __func__);
                return;
        }