Commit b8b0dd42 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Cyrill Gorcunov

Remove duplicate strerror(errno) printing

Function pr_perror() already spits out strerror(errno), no need to do it
in the calling code.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 789a2c7f
......@@ -148,13 +148,13 @@ struct cr_fdset *cr_fdset_open(int pid, unsigned long use_mask, struct cr_fdset
ret = unlink(path);
if (ret && errno != ENOENT) {
pr_perror("Unable to unlink %s (%s)\n", path, strerror(errno));
pr_perror("Unable to unlink %s\n", path);
goto err;
}
ret = open(path, O_RDWR | O_CREAT | O_EXCL, CR_FD_PERM);
if (ret < 0) {
pr_perror("Unable to open %s (%s)\n", path, strerror(errno));
pr_perror("Unable to open %s\n", path);
goto err;
}
......@@ -191,7 +191,7 @@ struct cr_fdset *prep_cr_fdset_for_restore(int pid, unsigned long use_mask)
ret = open(path, O_RDWR, CR_FD_PERM);
if (ret < 0) {
pr_perror("Unable to open %s (%s)\n", path, strerror(errno));
pr_perror("Unable to open %s\n", path);
goto err;
}
......
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