[CRIU] [PATCH] dump: Simplify cr_dump_tasks message printing

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 30 07:50:29 EDT 2012


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

diff --git a/cr-dump.c b/cr-dump.c
index 5717785..d776b9d 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1500,10 +1500,7 @@ int cr_dump_tasks(pid_t pid, const struct cr_options *opts)
 	int i, ret = -1;
 
 	pr_info("========================================\n");
-	if (!opts->leader_only)
-		pr_info("Dumping process group (pid: %d)\n", pid);
-	else
-		pr_info("Dumping process (pid: %d)\n", pid);
+	pr_info("Dumping process %s(pid: %d)\n", !opts->leader_only ? "group " : "", pid);
 	pr_info("========================================\n");
 
 	if (collect_dump_pstree(pid, &pstree_list, opts))
-- 
1.7.7.6



More information about the CRIU mailing list