summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-07-06 17:24:25 +0200
committerGitHub <noreply@github.com>2018-07-06 17:24:25 +0200
commit9d90a8608373c1312b36582a72793a750665a7fe (patch)
tree6087a249b0ebddd8551a4b8c2dd0842d721c7452
parentMerge pull request #2618 from pacovn/PVS-Studio_library_warnings (diff)
parentlib: add the pathname to get the realpath in case of failure (diff)
downloadfrr-9d90a8608373c1312b36582a72793a750665a7fe.tar.xz
frr-9d90a8608373c1312b36582a72793a750665a7fe.zip
Merge pull request #2628 from pguibert6WIND/realpath_debug
lib: add the pathname to get the realpath in case of failure
-rw-r--r--lib/netns_linux.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c
index a3fae8f39..a80b51fa0 100644
--- a/lib/netns_linux.c
+++ b/lib/netns_linux.c
@@ -435,10 +435,13 @@ char *ns_netns_pathname(struct vty *vty, const char *name)
if (!result) {
if (vty)
- vty_out(vty, "Invalid pathname: %s\n",
+ vty_out(vty, "Invalid pathname for %s: %s\n",
+ pathname,
safe_strerror(errno));
else
- zlog_warn("Invalid pathname: %s", safe_strerror(errno));
+ zlog_warn("Invalid pathname for %s: %s",
+ pathname,
+ safe_strerror(errno));
return NULL;
}
check_base = basename(pathname);