[CRIU] [PATCH] util: mkdirp -- Print exactly what is failed

Cyrill Gorcunov gorcunov at openvz.org
Wed Sep 17 00:59:31 PDT 2014


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 3fae835fd7a7..b5aef2f6152e 100644
--- a/util.c
+++ b/util.c
@@ -678,7 +678,7 @@ int mkdirp(const char *path)
 		if (pos)
 			*pos = '\0';
 		if (mkdir(made_path, 0755) < 0 && errno != EEXIST) {
-			pr_perror("couldn't mkdirpat directory");
+			pr_perror("couldn't mkdirpat directory %s", made_path);
 			return -1;
 		}
 		if (pos) {
-- 
1.9.3



More information about the CRIU mailing list