[CRIU] [PATCH] util: report a command name in error messages for cr_system()

Andrei Vagin avagin at openvz.org
Thu Aug 10 02:21:53 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

It is good to know what command were executed.

https://github.com/xemul/criu/issues/371
Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/util.c b/criu/util.c
index 7404652e3..b5a161f18 100644
--- a/criu/util.c
+++ b/criu/util.c
@@ -702,7 +702,7 @@ int cr_system_userns(int in, int out, int err, char *cmd,
 
 		execvp(cmd, argv);
 
-		pr_perror("exec failed");
+		pr_perror("exec(%s, ...) failed", cmd);
 out_chld:
 		_exit(1);
 	}
-- 
2.13.3



More information about the CRIU mailing list