[CRIU] [PATCH] files-reg: Use pr_err instead of pr_perror if fd not found

Cyrill Gorcunov gorcunov at openvz.org
Mon Mar 18 04:50:41 EDT 2013


Otherwise

 | (00.002843)      1: Error (files-reg.c:522): Can't find regfile for 0
 | : Success

which is inappropriate here.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files-reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files-reg.c b/files-reg.c
index 1d48d3c..d59109e 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -519,7 +519,7 @@ int open_path_by_id(u32 id, int (*open_cb)(struct reg_file_info *, void *), void
 
 	fd = find_file_desc_raw(FD_TYPES__REG, id);
 	if (fd == NULL) {
-		pr_perror("Can't find regfile for %#x\n", id);
+		pr_err("Can't find regfile for %#x\n", id);
 		return -1;
 	}
 
-- 
1.8.1.4



More information about the CRIU mailing list