From 38937bd540f3c867af21935578c264905c7846cd Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 18 Jun 2018 14:27:21 -0400 Subject: 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 --- isisd/isis_pfpacket.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'isisd/isis_pfpacket.c') 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; } -- cgit v1.2.3