From af4c27286d8eb3f347ff431a17a47a8d07cd8976 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Fri, 3 Aug 2018 18:03:29 +0000 Subject: *: rename zlog_fer -> flog_err Signed-off-by: Quentin Young --- lib/netns_linux.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/netns_linux.c') diff --git a/lib/netns_linux.c b/lib/netns_linux.c index 3a24e511ae..61ae450086 100644 --- a/lib/netns_linux.c +++ b/lib/netns_linux.c @@ -219,7 +219,7 @@ static int ns_enable_internal(struct ns *ns, void (*func)(ns_id_t, void *)) } if (!ns_is_enabled(ns)) { - zlog_ferr(LIB_ERR_SYSTEM_CALL, + flog_err(LIB_ERR_SYSTEM_CALL, "Can not enable NS %u: %s!", ns->ns_id, safe_strerror(errno)); return 0; @@ -227,7 +227,7 @@ static int ns_enable_internal(struct ns *ns, void (*func)(ns_id_t, void *)) /* Non default NS. leave */ if (ns->ns_id == NS_UNKNOWN) { - zlog_ferr(LIB_ERR_NS, + flog_err(LIB_ERR_NS, "Can not enable NS %s %u: Invalid NSID", ns->name, ns->ns_id); return 0; @@ -472,7 +472,7 @@ void ns_init(void) if (have_netns_enabled < 0) { ns_default_ns_fd = open(NS_DEFAULT_NAME, O_RDONLY); if (ns_default_ns_fd == -1) - zlog_ferr(LIB_ERR_NS, + flog_err(LIB_ERR_NS, "NS initialization failure %d(%s)", errno, safe_strerror(errno)); } else { @@ -495,7 +495,7 @@ void ns_init_management(ns_id_t default_ns_id, ns_id_t internal_ns) ns_init(); default_ns = ns_get_created_internal(NULL, NULL, default_ns_id); if (!default_ns) { - zlog_ferr(LIB_ERR_NS, "%s: failed to create the default NS!", + flog_err(LIB_ERR_NS, "%s: failed to create the default NS!", __func__); exit(1); } @@ -513,7 +513,7 @@ void ns_init_management(ns_id_t default_ns_id, ns_id_t internal_ns) /* Enable the default NS. */ if (!ns_enable(default_ns, NULL)) { - zlog_ferr(LIB_ERR_NS, "%s: failed to enable the default NS!", + flog_err(LIB_ERR_NS, "%s: failed to enable the default NS!", __func__); exit(1); } -- cgit v1.2.3