summaryrefslogtreecommitdiff
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-12 22:00:04 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-12 22:00:04 +0200
commit029270d5f42b5083cda03799d31f2c11350a7e46 (patch)
treeab98bf44cfc7611ad7cc699396674554f150db43 /lib/netns_linux.c
parent7aab2afbad2f25c128e9e608766b407f6bd34c89 (diff)
parente991eff5b5773e8a85c3f4c4f92c09fe30cf680b (diff)
Merge branch 'warnings'
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/netns_linux.c')
-rw-r--r--lib/netns_linux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c
index 33338ac89c..e3170fee1e 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -441,8 +441,8 @@ char *ns_netns_pathname(struct vty *vty, const char *name)
pathname,
safe_strerror(errno));
else
- zlog_warn("Invalid pathname for %s: %s",
- pathname,
+ flog_warn(LIB_WARN_LINUX_NS,
+ "Invalid pathname for %s: %s", pathname,
safe_strerror(errno));
return NULL;
}
@@ -452,7 +452,8 @@ char *ns_netns_pathname(struct vty *vty, const char *name)
vty_out(vty, "NS name (%s) invalid: too long (>%d)\n",
check_base, NS_NAMSIZ - 1);
else
- zlog_warn("NS name (%s) invalid: too long (>%d)",
+ flog_warn(LIB_WARN_LINUX_NS,
+ "NS name (%s) invalid: too long (>%d)",
check_base, NS_NAMSIZ - 1);
return NULL;
}