[CRIU] [PATCH 1/7] files.c: fix error message
Kir Kolyshkin
kir at openvz.org
Fri Feb 10 18:30:04 EST 2012
Use perror since read() set errno.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
files.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/files.c b/files.c
index 39f03e3..207a6a0 100644
--- a/files.c
+++ b/files.c
@@ -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;
}
--
1.7.7.6
More information about the CRIU
mailing list