diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-06-19 20:29:05 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | 43e52561b476e4810e0a1280769e800e2d619621 (patch) | |
tree | 9d8639c395d92ebcd38261371ec2103f36ce42b5 /zebra/irdp_main.c | |
parent | isisd: Cleanup compile issue (diff) | |
download | frr-43e52561b476e4810e0a1280769e800e2d619621.tar.xz frr-43e52561b476e4810e0a1280769e800e2d619621.zip |
zebra, lib: error references for zebra
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r-- | zebra/irdp_main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index c2411d083..8efbdcf48 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -28,7 +28,7 @@ */ /* - * Thanks to Jens Låås at Swedish University of Agricultural Sciences + * Thanks to Jens Laas at Swedish University of Agricultural Sciences * for reviewing and tests. */ @@ -51,6 +51,7 @@ #include "thread.h" #include "privs.h" #include "libfrr.h" +#include "lib_errors.h" #include "version.h" #include "zebra/interface.h" #include "zebra/rtadv.h" @@ -81,15 +82,17 @@ int irdp_sock_init(void) int sock; if (zserv_privs.change(ZPRIVS_RAISE)) - zlog_err("irdp_sock_init: could not raise privs, %s", - safe_strerror(errno)); + zlog_ferr(LIB_ERR_PRIVILEGES, + "irdp_sock_init: could not raise privs, %s", + safe_strerror(errno)); sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); save_errno = errno; if (zserv_privs.change(ZPRIVS_LOWER)) - zlog_err("irdp_sock_init: could not lower privs, %s", - safe_strerror(errno)); + zlog_ferr(LIB_ERR_PRIVILEGES, + "irdp_sock_init: could not lower privs, %s", + safe_strerror(errno)); if (sock < 0) { zlog_warn("IRDP: can't create irdp socket %s", |