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_dlpi.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_dlpi.c')
-rw-r--r-- | isisd/isis_dlpi.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/isisd/isis_dlpi.c b/isisd/isis_dlpi.c index 718f3a898..455a2ca3a 100644 --- a/isisd/isis_dlpi.c +++ b/isisd/isis_dlpi.c @@ -36,6 +36,7 @@ #include "network.h" #include "stream.h" #include "if.h" +#include "lib_errors.h" #include "isisd/dict.h" #include "isisd/isis_constants.h" @@ -468,8 +469,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_PRIVILEGE, "%s: could not raise privs, %s", + __func__, safe_strerror(errno)); retval = open_dlpi_dev(circuit); @@ -489,8 +490,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_PRIVILEGE, "%s: could not lower privs, %s", + __func__, safe_strerror(errno)); return retval; } |