diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 14:27:21 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | 38937bd540f3c867af21935578c264905c7846cd (patch) | |
| tree | d334d8ca2ca9ea39fdcad8fe448c4ae4304ac9f3 /isisd/isis_dlpi.c | |
| parent | e33b116cdf983c81fdb1b9716684a888b870899b (diff) | |
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 718f3a8982..455a2ca3aa 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; } |
