From 14e42bb7049bddbcc52d8bc7f51a8ef2cfde212f Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Tue, 10 Jan 2012 20:02:00 +0400 Subject: [PATCH] pipe: fix error code and message Signed-off-by: Andrey Vagin Signed-off-by: Cyrill Gorcunov --- cr-restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cr-restore.c b/cr-restore.c index 1f6483b83..879b51138 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -966,7 +966,7 @@ err: static int prepare_pipes(int pid) { - u32 err = 1, ret; + u32 err = -1, ret; int pipes_fd; struct pipe_list_entry *le, *buf; @@ -1092,7 +1092,7 @@ static inline int fork_with_pid(int pid, char *pstree_path) } ret = restore_task_with_children(my_pid, pstree_path); - pr_err("%d: Something failed with code %d\n", ret); + pr_err("%d: Something failed with code %d\n", pid, ret); exit(1); }