[07/14] Correct an error message after waitpid

Submitted by Kir Kolyshkin on March 21, 2017, 10 p.m.

Details

Message ID 20170321220101.21228-8-kir@openvz.org
State New
Series "Spring '07 cleaning"
Headers show

Commit Message

Kir Kolyshkin March 21, 2017, 10 p.m.
Usually we print the PID we wait for, let's do the same here.
Probably just a typo.

Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
---
 criu/namespaces.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/namespaces.c b/criu/namespaces.c
index 01afca4..a0e7397 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -1175,7 +1175,7 @@  static int check_user_ns(struct ns_id *ns)
 	}
 
 	if (waitpid(chld, &status, 0) != chld) {
-		pr_perror("Unable to wait the %d process", pid);
+		pr_perror("Unable to wait for PID %d", chld);
 		return -1;
 	}
 

Comments

Kirill Tkhai March 22, 2017, 9:55 a.m.
On 22.03.2017 01:00, Kir Kolyshkin wrote:
> Usually we print the PID we wait for, let's do the same here.
> Probably just a typo.
> 
> Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
> Signed-off-by: Kir Kolyshkin <kir@openvz.org>

Reviewed-by: Kirill Tkhai <ktkhai@virtuozzo.com>

> ---
>  criu/namespaces.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/namespaces.c b/criu/namespaces.c
> index 01afca4..a0e7397 100644
> --- a/criu/namespaces.c
> +++ b/criu/namespaces.c
> @@ -1175,7 +1175,7 @@ static int check_user_ns(struct ns_id *ns)
>  	}
>  
>  	if (waitpid(chld, &status, 0) != chld) {
> -		pr_perror("Unable to wait the %d process", pid);
> +		pr_perror("Unable to wait for PID %d", chld);
>  		return -1;
>  	}
>  
>