[CRIU] [PATCH] dump: Add missing new lines

Cyrill Gorcunov gorcunov at openvz.org
Mon Apr 9 14:20:13 EDT 2012


Otherwise output looks like

Dumping core (pid: 16953)
----------------------------------------
Dumping GP/FPU registers ... OK
Obtainting personality ... OK
Obtainting task auvx ... Dumping path for 1 fd via self 19 [/home/crtools/test/legacy/test-inotify]
Dumping header ... ----------------------------------------

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-dump.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index ef90bbb..0525c10 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -734,6 +734,7 @@ static int dump_task_mm(pid_t pid, const struct proc_pid_stat *stat,
 
 	if (get_task_auxv(pid, &mme))
 		return -1;
+	pr_info("OK\n");
 
 	if (dump_task_exe_link(pid, &mme))
 		return -1;
@@ -951,6 +952,9 @@ static int dump_task_core_all(pid_t pid, const struct proc_pid_stat *stat,
 	core->tc.exit_code = 0;
 
 	ret = dump_task_core(core, fdset_fd(cr_fdset, CR_FD_CORE));
+	if (ret)
+		goto err_free;
+	pr_info("OK\n");
 
 err_free:
 	free(core);
-- 
1.7.7.6



More information about the CRIU mailing list