]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Convert ospf_asbr.c to use error-codes subsystem
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 21 Aug 2018 13:06:02 +0000 (09:06 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 6 Sep 2018 20:50:58 +0000 (20:50 +0000)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospfd/ospf_asbr.c

index 8e8f65530529e5f4319973337c602385045582a5..da5f485ef7ab1ff2ef774eb8b17614bb27d42709 100644 (file)
@@ -135,11 +135,12 @@ ospf_external_info_add(struct ospf *ospf, uint8_t type, unsigned short instance,
 
                        inet_ntop(AF_INET, (void *)&nexthop.s_addr, inetbuf,
                                  INET6_BUFSIZ);
-                       zlog_warn(
-                               "Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.",
-                               ospf_redist_string(type), instance,
-                               ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen,
-                               inetbuf);
+                       if (IS_DEBUG_OSPF(lsa, LSA_GENERATE))
+                           zlog_debug(
+                                      "Redistribute[%s][%d][%u]: %s/%d discarding old info with NH %s.",
+                                      ospf_redist_string(type), instance,
+                                      ospf->vrf_id, inet_ntoa(p.prefix), p.prefixlen,
+                                      inetbuf);
                        XFREE(MTYPE_OSPF_EXTERNAL_INFO, rn->info);
                        rn->info = NULL;
                }