static int my_checker(const struct lxc_arguments *args)
{
if (do_restore && stop) {
- ERROR("-s not compatible with -r.");
+ ERROR("-s not compatible with -r");
return -1;
} else if (!do_restore && daemonize_set) {
- ERROR("-d/-F not compatible with -r.");
+ ERROR("-d/-F not compatible with -r");
return -1;
}
if (!checkpoint_dir) {
- ERROR("-D is required.");
+ ERROR("-D is required");
return -1;
}
if (pre_dump && do_restore) {
- ERROR("-p not compatible with -r.");
+ ERROR("-p not compatible with -r");
return -1;
}
int mode;
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);
return false;
}
/* the migrate() API does not negate the return code like
* checkpoint() and restore() does. */
if (ret) {
- ERROR("Checkpointing %s failed.", my_args.name);
+ ERROR("Checkpointing %s failed", my_args.name);
return false;
}
ret = c->migrate(c, MIGRATE_RESTORE, &opts, sizeof(opts));
if (ret) {
- ERROR("Restoring %s failed.", my_args.name);
+ ERROR("Restoring %s failed", my_args.name);
return false;
}
static bool restore(struct lxc_container *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);
return false;
}