summaryrefslogtreecommitdiffstats
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/netns_linux.c')
-rw-r--r--lib/netns_linux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c
index 61ae45008..b8eaa72c2 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -219,9 +219,9 @@ static int ns_enable_internal(struct ns *ns, void (*func)(ns_id_t, void *))
}
if (!ns_is_enabled(ns)) {
- flog_err(LIB_ERR_SYSTEM_CALL,
- "Can not enable NS %u: %s!", ns->ns_id,
- safe_strerror(errno));
+ flog_err_sys(LIB_ERR_SYSTEM_CALL,
+ "Can not enable NS %u: %s!", ns->ns_id,
+ safe_strerror(errno));
return 0;
}