[CRIU] [PATCH 4/7] open_proc_sfd(): use pr_perror() after failed open()

Kir Kolyshkin kir at openvz.org
Wed Oct 7 09:19:50 PDT 2015


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

diff --git a/util.c b/util.c
index fdd885c..337b0ed 100644
--- a/util.c
+++ b/util.c
@@ -229,7 +229,7 @@ static int open_proc_sfd(char *path)
 	close_proc();
 	fd = open(path, O_DIRECTORY | O_RDONLY);
 	if (fd == -1) {
-		pr_err("Can't open %s\n", path);
+		pr_perror("Can't open %s", path);
 		return -1;
 	}
 
-- 
2.4.3



More information about the CRIU mailing list