diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 20:27:21 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | 38937bd540f3c867af21935578c264905c7846cd (patch) | |
tree | d334d8ca2ca9ea39fdcad8fe448c4ae4304ac9f3 /isisd/isis_pfpacket.c | |
parent | babeld: Convert all zlog_err to zlog_ferr and add appropriate info (diff) | |
download | frr-38937bd540f3c867af21935578c264905c7846cd.tar.xz frr-38937bd540f3c867af21935578c264905c7846cd.zip |
isisd: Convert to use LIB_ERR_XXX
Where an obvious choice could be made about converting
to a LIB_ERR_XXX function do so.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd/isis_pfpacket.c')
-rw-r--r-- | isisd/isis_pfpacket.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/isisd/isis_pfpacket.c b/isisd/isis_pfpacket.c index fd82b85f5..f27ca2889 100644 --- a/isisd/isis_pfpacket.c +++ b/isisd/isis_pfpacket.c @@ -31,6 +31,7 @@ #include "network.h" #include "stream.h" #include "if.h" +#include "lib_errors.h" #include "isisd/dict.h" #include "isisd/isis_constants.h" @@ -185,8 +186,8 @@ int isis_sock_init(struct isis_circuit *circuit) int retval = ISIS_OK; if (isisd_privs.change(ZPRIVS_RAISE)) - zlog_err("%s: could not raise privs, %s", __func__, - safe_strerror(errno)); + zlog_ferr(LIB_ERR_PRIVILEGES, "%s: could not raise privs, %s", + __func__, safe_strerror(errno)); retval = open_packet_socket(circuit); @@ -210,8 +211,8 @@ int isis_sock_init(struct isis_circuit *circuit) end: if (isisd_privs.change(ZPRIVS_LOWER)) - zlog_err("%s: could not lower privs, %s", __func__, - safe_strerror(errno)); + zlog_ferr(LIB_ERR_PRIVILEGES, "%s: could not lower privs, %s", + __func__, safe_strerror(errno)); return retval; } |