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

files.c: fix error message

Use perror since read() set errno.
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 717994a4
......@@ -76,7 +76,7 @@ static struct fdinfo_desc *find_fd(char *id)
static int get_file_path(char *path, struct fdinfo_entry *fe, int fd)
{
if (read(fd, path, fe->len) != fe->len) {
pr_err("Error reading path");
pr_perror("Error reading path");
return -1;
}
......
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