diff options
Diffstat (limited to 'zebra/zebra_mpls_openbsd.c')
| -rw-r--r-- | zebra/zebra_mpls_openbsd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/zebra/zebra_mpls_openbsd.c b/zebra/zebra_mpls_openbsd.c index 91e1d7118d..1591063131 100644 --- a/zebra/zebra_mpls_openbsd.c +++ b/zebra/zebra_mpls_openbsd.c @@ -118,13 +118,13 @@ static int kernel_send_rtmsg_v4(int action, mpls_label_t in_label, } if (zserv_privs.change(ZPRIVS_RAISE)) - zlog_ferr(LIB_ERR_PRIVILEGES, "Can't raise privileges"); + flog_err(LIB_ERR_PRIVILEGES, "Can't raise privileges"); ret = writev(kr_state.fd, iov, iovcnt); if (zserv_privs.change(ZPRIVS_LOWER)) - zlog_ferr(LIB_ERR_PRIVILEGES, "Can't lower privileges"); + flog_err(LIB_ERR_PRIVILEGES, "Can't lower privileges"); if (ret == -1) - zlog_ferr(LIB_ERR_SOCKET, "%s: %s", __func__, + flog_err(LIB_ERR_SOCKET, "%s: %s", __func__, safe_strerror(errno)); return ret; @@ -227,13 +227,13 @@ static int kernel_send_rtmsg_v6(int action, mpls_label_t in_label, } if (zserv_privs.change(ZPRIVS_RAISE)) - zlog_ferr(LIB_ERR_PRIVILEGES, "Can't raise privileges"); + flog_err(LIB_ERR_PRIVILEGES, "Can't raise privileges"); ret = writev(kr_state.fd, iov, iovcnt); if (zserv_privs.change(ZPRIVS_LOWER)) - zlog_ferr(LIB_ERR_PRIVILEGES, "Can't lower privileges"); + flog_err(LIB_ERR_PRIVILEGES, "Can't lower privileges"); if (ret == -1) - zlog_ferr(LIB_ERR_SOCKET, "%s: %s", __func__, + flog_err(LIB_ERR_SOCKET, "%s: %s", __func__, safe_strerror(errno)); return ret; @@ -401,7 +401,7 @@ static int kmpw_install(struct zebra_pw *pw) strlcpy(ifr.ifr_name, pw->ifname, sizeof(ifr.ifr_name)); ifr.ifr_data = (caddr_t)&imr; if (ioctl(kr_state.ioctl_fd, SIOCSETMPWCFG, &ifr) == -1) { - zlog_ferr(LIB_ERR_SYSTEM_CALL, "ioctl SIOCSETMPWCFG: %s", + flog_err(LIB_ERR_SYSTEM_CALL, "ioctl SIOCSETMPWCFG: %s", safe_strerror(errno)); return -1; } @@ -419,7 +419,7 @@ static int kmpw_uninstall(struct zebra_pw *pw) strlcpy(ifr.ifr_name, pw->ifname, sizeof(ifr.ifr_name)); ifr.ifr_data = (caddr_t)&imr; if (ioctl(kr_state.ioctl_fd, SIOCSETMPWCFG, &ifr) == -1) { - zlog_ferr(LIB_ERR_SYSTEM_CALL, "ioctl SIOCSETMPWCFG: %s", + flog_err(LIB_ERR_SYSTEM_CALL, "ioctl SIOCSETMPWCFG: %s", safe_strerror(errno)); return -1; } |
