Commit 411f6390 authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Pavel Emelyanov

dump: fix return code in message on pre-dump failure

Obviously we should print pre_dump_ret value if pre-dump failed.
Signed-off-by: 's avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7398d9fd
......@@ -1499,7 +1499,7 @@ int cr_dump_tasks(pid_t pid)
pre_dump_ret = run_scripts(ACT_PRE_DUMP);
if (pre_dump_ret != 0) {
pr_err("Pre dump script failed with %d!\n", post_dump_ret);
pr_err("Pre dump script failed with %d!\n", pre_dump_ret);
goto err;
}
if (init_stats(DUMP_STATS))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment