[CRIU] [PATCH 5/8] util: Log scripts running

Pavel Emelyanov xemul at parallels.com
Thu Dec 26 05:00:22 PST 2013


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 util.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 3f37302..4c57406 100644
--- a/util.c
+++ b/util.c
@@ -459,13 +459,17 @@ int run_scripts(char *action)
 	struct script *script;
 	int ret = 0;
 
+	pr_debug("Running %s scripts\n", action);
+
 	if (setenv("CRTOOLS_SCRIPT_ACTION", action, 1)) {
 		pr_perror("Can't set CRTOOLS_SCRIPT_ACTION=%s", action);
 		return -1;
 	}
 
-	list_for_each_entry(script, &opts.scripts, node)
+	list_for_each_entry(script, &opts.scripts, node) {
+		pr_debug("\t[%s]\n", script->path);
 		ret |= system(script->path);
+	}
 
 	unsetenv("CRTOOLS_SCRIPT_ACTION");
 	return ret;
-- 
1.8.3.1


More information about the CRIU mailing list