Commit 16259242 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

criu/namespaces.c: fix pr_perror usage

1. No newline (pr_perror() already adds one for you)

2. No colon before file name, e.g.

WAS:	Can't open file: /some/file: permission denied
NOW:	Can't open file /some/file: permission denied

Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Cc: Dengguangxing <dengguangxing@huawei.com>
Reviewed-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 9e1bde4d
...@@ -103,7 +103,7 @@ static int check_ns_file(char *ns_file) ...@@ -103,7 +103,7 @@ static int check_ns_file(char *ns_file)
ret = access(ns_file, 0); ret = access(ns_file, 0);
if (ret < 0) { if (ret < 0) {
pr_perror("Can't access join-ns file: %s", ns_file); pr_perror("Can't access join-ns file %s", ns_file);
return -1; return -1;
} }
return 0; return 0;
...@@ -1539,7 +1539,7 @@ static int get_join_ns_fd(struct join_ns *jn) ...@@ -1539,7 +1539,7 @@ static int get_join_ns_fd(struct join_ns *jn)
fd = open(pnsf, O_RDONLY); fd = open(pnsf, O_RDONLY);
if (fd < 0) { if (fd < 0) {
pr_perror("Can't open ns file: %s", pnsf); pr_perror("Can't open ns file %s", pnsf);
return -1; return -1;
} }
jn->ns_fd = fd; jn->ns_fd = fd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment