Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/criu
diff options
context:
space:
mode:
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>2018-09-11 11:09:02 +0300
committerAndrei Vagin <avagin@gmail.com>2018-10-30 19:27:59 +0300
commitcf77cfaccc22dcb1aa33e34da18dcbd929f19f42 (patch)
treeb77e40beb13b41e9ee425098826825323c3005b2 /criu
parentb4ab1d8cbab1ee72134f03667fc0a92c7730c0f5 (diff)
log: add line breaks to pr_warn
for i in $(find . -name "*.[ch]" -type f); do sed -i 's/\(pr_warn(".*[^n]\)\("[),]\)/\1\\n\2/' $i done Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'criu')
-rw-r--r--criu/cr-restore.c2
-rw-r--r--criu/crtools.c2
-rw-r--r--criu/files-reg.c2
-rw-r--r--criu/namespaces.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 5a1551a8b..8ba413d1a 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -2289,7 +2289,7 @@ out_kill:
kill(root_item->pid->real, SIGKILL);
if (waitpid(root_item->pid->real, &status, 0) < 0)
- pr_warn("Unable to wait %d: %s",
+ pr_warn("Unable to wait %d: %s\n",
root_item->pid->real, strerror(errno));
} else {
struct pstree_item *pi;
diff --git a/criu/crtools.c b/criu/crtools.c
index 17476d357..1c47ca89e 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -235,7 +235,7 @@ int main(int argc, char *argv[], char *envp[])
opts.restore_detach &&
opts.final_state == TASK_STOPPED &&
opts.shell_job)
- pr_warn("Stopped and detached shell job will get SIGHUP from OS.");
+ pr_warn("Stopped and detached shell job will get SIGHUP from OS.\n");
if (chdir(opts.work_dir)) {
pr_perror("Can't change directory to %s", opts.work_dir);
diff --git a/criu/files-reg.c b/criu/files-reg.c
index d6161fef0..211c38b3f 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -1355,7 +1355,7 @@ static int linkat_hard(int odir, char *opath, int ndir, char *npath, uid_t uid,
if (!( (errno == EPERM || errno == EOVERFLOW) && (root_ns_mask & CLONE_NEWUSER) )) {
errno_save = errno;
- pr_warn("Can't link %s -> %s", opath, npath);
+ pr_warn("Can't link %s -> %s\n", opath, npath);
errno = errno_save;
return ret;
}
diff --git a/criu/namespaces.c b/criu/namespaces.c
index f58f310ad..e8908e8ff 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -52,7 +52,7 @@ int check_namespace_opts(void)
return -1;
}
if (join_ns_flags & CLONE_NEWUSER)
- pr_warn("join-ns with user-namespace is not fully tested and dangerous");
+ pr_warn("join-ns with user-namespace is not fully tested and dangerous\n");
errno = 0;
return 0;