[CRIU] [crtools-bot for Kir Kolyshkin ] files.c: fix error message

Cyrill Gorcunov gorcunov at openvz.org
Sat Feb 11 02:58:06 EST 2012


The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit b5a377ca7dd2d921f9a47f0494d188d37410f6bb
Author: Kir Kolyshkin <kir at openvz.org>
Date:   Sat Feb 11 03:30:04 2012 +0400

    files.c: fix error message
    
    Use perror since read() set errno.
    
    Signed-off-by: Kir Kolyshkin <kir at openvz.org>
    Signed-off-by: Cyrill Gorcunov <gorcunov 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;
 	}
 


More information about the CRIU mailing list