summaryrefslogtreecommitdiffstats
path: root/isisd/isis_bpf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-18 20:27:21 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit38937bd540f3c867af21935578c264905c7846cd (patch)
treed334d8ca2ca9ea39fdcad8fe448c4ae4304ac9f3 /isisd/isis_bpf.c
parentbabeld: Convert all zlog_err to zlog_ferr and add appropriate info (diff)
downloadfrr-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_bpf.c')
-rw-r--r--isisd/isis_bpf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/isisd/isis_bpf.c b/isisd/isis_bpf.c
index 2cc2fefd9..b5a09aff2 100644
--- a/isisd/isis_bpf.c
+++ b/isisd/isis_bpf.c
@@ -32,6 +32,7 @@
#include "network.h"
#include "stream.h"
#include "if.h"
+#include "lib_errors.h"
#include "isisd/dict.h"
#include "isisd/isis_constants.h"
@@ -187,8 +188,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_bpf_dev(circuit);
@@ -208,8 +209,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;
}