summaryrefslogtreecommitdiff
path: root/zebra/zebra_ns.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-14 10:38:40 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 20:02:05 +0000
commit174482ef377034d2ab3c14df0b4f4191731f1316 (patch)
tree90d03a36aad22fb51e00d218ffee2aba35950ef9 /zebra/zebra_ns.c
parent220d736886228043c8d3503eab9cc9831d9c2834 (diff)
bgpd, lib, zebra: Convert LIB_ERR_PRIVILEGES
For all the places we zlog_err about raising/lowering privileges, use zlog_ferr. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ns.c')
-rw-r--r--zebra/zebra_ns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c
index 25e68cc081..8676d3aec8 100644
--- a/zebra/zebra_ns.c
+++ b/zebra/zebra_ns.c
@@ -26,6 +26,7 @@
#include "lib/logicalrouter.h"
#include "lib/prefix.h"
#include "lib/memory.h"
+#include "lib/lib_errors.h"
#include "rtadv.h"
#include "zebra_ns.h"
@@ -315,10 +316,10 @@ int zebra_ns_init(void)
dzns = zebra_ns_alloc();
if (zserv_privs.change(ZPRIVS_RAISE))
- zlog_err("Can't raise privileges");
+ zlog_ferr(LIB_ERR_PRIVILEGES, "Can't raise privileges");
ns_id = zebra_ns_id_get_default();
if (zserv_privs.change(ZPRIVS_LOWER))
- zlog_err("Can't lower privileges");
+ zlog_ferr(LIB_ERR_PRIVILEGES, "Can't lower privileges");
ns_id_external = ns_map_nsid_with_external(ns_id, true);
ns_init_management(ns_id_external, ns_id);