From cf77cfaccc22dcb1aa33e34da18dcbd929f19f42 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Tue, 11 Sep 2018 11:09:02 +0300 Subject: [PATCH] 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 Signed-off-by: Andrei Vagin --- compel/src/lib/infect.c | 2 +- criu/cr-restore.c | 2 +- criu/crtools.c | 2 +- criu/files-reg.c | 2 +- criu/namespaces.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compel/src/lib/infect.c b/compel/src/lib/infect.c index 8ff05d6ea..abf3a0ab3 100644 --- a/compel/src/lib/infect.c +++ b/compel/src/lib/infect.c @@ -137,7 +137,7 @@ int compel_interrupt_task(int pid) */ ret = ptrace(PTRACE_INTERRUPT, pid, NULL, NULL); if (ret < 0) { - pr_warn("SEIZE %d: can't interrupt task: %s", pid, strerror(errno)); + pr_warn("SEIZE %d: can't interrupt task: %s\n", pid, strerror(errno)); if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) pr_perror("Unable to detach from %d", pid); } 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;