From ccdca9e3d1fae1f2ae2ed76ab3fa044e526ccc6a Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 12 Apr 2012 15:22:06 +0400 Subject: [PATCH] dump: Add missing new lines 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 Signed-off-by: Pavel Emelyanov --- cr-dump.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cr-dump.c b/cr-dump.c index d43558e99..177d27ed5 100644 --- a/cr-dump.c +++ b/cr-dump.c @@ -772,6 +772,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; @@ -988,6 +989,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);