[CRIU] [PATCH 2/4] dump: fix return code in message on pre-dump failure
Andrey Ryabinin
aryabinin at virtuozzo.com
Wed Dec 16 03:59:49 PST 2015
Obviously we should print pre_dump_ret value if pre-dump failed.
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
cr-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cr-dump.c b/cr-dump.c
index 5cc375d..37de16c 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1466,7 +1466,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))
--
2.4.10
More information about the CRIU
mailing list