]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: Convert opsfd.c to use new error-code subysstem
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 20 Aug 2018 23:59:40 +0000 (19:59 -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/ospfd.c

index 6a8148c62375d1d87923318773b8989acaa4dbf4..d7406e4e19689fae69a97fb692ace137046901b4 100644 (file)
@@ -324,9 +324,9 @@ static struct ospf *ospf_new(unsigned short instance, const char *name)
        new->fd = -1;
        if ((ospf_sock_init(new)) < 0) {
                if (new->vrf_id != VRF_UNKNOWN)
-                       zlog_warn(
-                               "%s: ospf_sock_init is unable to open a socket",
-                               __func__);
+                       flog_err(LIB_ERR_SOCKET,
+                                "%s: ospf_sock_init is unable to open a socket",
+                                __func__);
                return new;
        }
        thread_add_read(master, ospf_read, new, new->fd, &new->t_read);