From: Serge E. Hallyn <[email protected]>

Signed-off-by: Serge E. Hallyn <[email protected]>
---
 checkpoint/restart.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/checkpoint/restart.c b/checkpoint/restart.c
index 9b75de8..3f23397 100644
--- a/checkpoint/restart.c
+++ b/checkpoint/restart.c
@@ -137,15 +137,16 @@ void restore_debug_free(struct ckpt_ctx *ctx)
         */
        list_for_each_entry(s, &ctx->task_status, list)
                count++;
-       ckpt_debug("%d tasks registered, nr_tasks was %d nr_total %d\n",
+       ckpt_error(ctx, "%d tasks registered, nr_tasks was %d nr_total %d\n",
                   count, ctx->nr_tasks, atomic_read(&ctx->nr_total));
 
-       ckpt_debug("active pid was %d, ctx->errno %d\n", ctx->active_pid,
+       ckpt_error(ctx, "active pid was %d, ctx->errno %d\n", ctx->active_pid,
                   ctx->errno);
-       ckpt_debug("kflags %lu uflags %lu oflags %lu", ctx->kflags,
+       ckpt_error(ctx, "kflags %lu uflags %lu oflags %lu", ctx->kflags,
                   ctx->uflags, ctx->oflags);
        for (i = 0; i < ctx->active_pid; i++)
-               ckpt_debug("task[%d] to run %d\n", i, ctx->pids_arr[i].vpid);
+               ckpt_error(ctx, "task[%d] to run %d\n", i,
+                          ctx->pids_arr[i].vpid);
 
        list_for_each_entry_safe(s, p, &ctx->task_status, list) {
                if (s->flags & RESTART_DBG_COORD)
@@ -170,7 +171,8 @@ void restore_debug_free(struct ckpt_ctx *ctx)
                        state = "Exited";
                else
                        state = "??????";
-               ckpt_debug("pid %d type %s state %s\n", s->pid, which, state);
+               ckpt_error(ctx, "pid %d type %s state %s\n", s->pid, which,
+                          state);
                list_del(&s->list);
                kfree(s);
        }
-- 
1.6.1

_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to