[CRIU] [PATCH] files: use pr_perror to print errno

Andrey Vagin avagin at openvz.org
Tue Mar 1 13:12:11 PST 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 criu/files-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/files-reg.c b/criu/files-reg.c
index b76b105..3876347 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -1391,7 +1391,7 @@ int open_path(struct file_desc *d,
 			static char tmp_path[PATH_MAX];
 
 			if (errno != EEXIST) {
-				pr_err("Can't link %s -> %s", rfi->path,
+				pr_perror("Can't link %s -> %s", rfi->path,
 						rfi->remap->rpath);
 				return -1;
 			}
-- 
2.5.0



More information about the CRIU mailing list