Commit 8fb41a34 by 2xsec

tools: lxc-checkpoint: remove the trailing .

Signed-off-by: 's avatar2xsec <dh48.jeong@samsung.com>
parent 54d47131
...@@ -59,21 +59,21 @@ lxc_log_define(lxc_checkpoint, lxc); ...@@ -59,21 +59,21 @@ lxc_log_define(lxc_checkpoint, lxc);
static int my_checker(const struct lxc_arguments *args) static int my_checker(const struct lxc_arguments *args)
{ {
if (do_restore && stop) { if (do_restore && stop) {
ERROR("-s not compatible with -r."); ERROR("-s not compatible with -r");
return -1; return -1;
} else if (!do_restore && daemonize_set) { } else if (!do_restore && daemonize_set) {
ERROR("-d/-F not compatible with -r."); ERROR("-d/-F not compatible with -r");
return -1; return -1;
} }
if (!checkpoint_dir) { if (!checkpoint_dir) {
ERROR("-D is required."); ERROR("-D is required");
return -1; return -1;
} }
if (pre_dump && do_restore) { if (pre_dump && do_restore) {
ERROR("-p not compatible with -r."); ERROR("-p not compatible with -r");
return -1; return -1;
} }
...@@ -162,7 +162,7 @@ static bool checkpoint(struct lxc_container *c) ...@@ -162,7 +162,7 @@ static bool checkpoint(struct lxc_container *c)
int mode; int mode;
if (!c->is_running(c)) { if (!c->is_running(c)) {
ERROR("%s not running, not checkpointing.", my_args.name); ERROR("%s not running, not checkpointing", my_args.name);
lxc_container_put(c); lxc_container_put(c);
return false; return false;
} }
...@@ -186,7 +186,7 @@ static bool checkpoint(struct lxc_container *c) ...@@ -186,7 +186,7 @@ static bool checkpoint(struct lxc_container *c)
/* the migrate() API does not negate the return code like /* the migrate() API does not negate the return code like
* checkpoint() and restore() does. */ * checkpoint() and restore() does. */
if (ret) { if (ret) {
ERROR("Checkpointing %s failed.", my_args.name); ERROR("Checkpointing %s failed", my_args.name);
return false; return false;
} }
...@@ -207,7 +207,7 @@ static bool restore_finalize(struct lxc_container *c) ...@@ -207,7 +207,7 @@ static bool restore_finalize(struct lxc_container *c)
ret = c->migrate(c, MIGRATE_RESTORE, &opts, sizeof(opts)); ret = c->migrate(c, MIGRATE_RESTORE, &opts, sizeof(opts));
if (ret) { if (ret) {
ERROR("Restoring %s failed.", my_args.name); ERROR("Restoring %s failed", my_args.name);
return false; return false;
} }
...@@ -218,7 +218,7 @@ static bool restore_finalize(struct lxc_container *c) ...@@ -218,7 +218,7 @@ static bool restore_finalize(struct lxc_container *c)
static bool restore(struct lxc_container *c) static bool restore(struct lxc_container *c)
{ {
if (c->is_running(c)) { if (c->is_running(c)) {
ERROR("%s is running, not restoring.", my_args.name); ERROR("%s is running, not restoring", my_args.name);
lxc_container_put(c); lxc_container_put(c);
return false; return false;
} }
......
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