[CRIU] [PATCH] log: don't forget LF for pr_err()

Andrey Vagin avagin at openvz.org
Wed Jul 15 02:11:07 PDT 2015


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c      | 2 +-
 include/sk-inet.h | 2 +-
 pie/restorer.c    | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 947985f..7ddc5b4 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -2559,7 +2559,7 @@ static int open_signal_image(int type, pid_t pid, unsigned int *nr)
 		if (ret <= 0)
 			break;
 		if (sie->siginfo.len != sizeof(siginfo_t)) {
-			pr_err("Unknown image format");
+			pr_err("Unknown image format\n");
 			ret = -1;
 			break;
 		}
diff --git a/include/sk-inet.h b/include/sk-inet.h
index 1a071e0..eb1a79a 100644
--- a/include/sk-inet.h
+++ b/include/sk-inet.h
@@ -58,7 +58,7 @@ static inline void tcp_repair_off(int fd)
 
 	ret = sys_setsockopt(fd, SOL_TCP, TCP_REPAIR, &aux, sizeof(aux));
 	if (ret < 0)
-		pr_err("Failed to turn off repair mode on socket (%d)", ret);
+		pr_err("Failed to turn off repair mode on socket (%d)\n", ret);
 }
 
 extern void tcp_locked_conn_add(struct inet_sk_info *);
diff --git a/pie/restorer.c b/pie/restorer.c
index 8c6b421..fa336fc 100644
--- a/pie/restorer.c
+++ b/pie/restorer.c
@@ -529,7 +529,7 @@ static void rst_tcp_repair_off(struct rst_tcp_sock *rts)
 
 	ret = sys_setsockopt(rts->sk, SOL_SOCKET, SO_REUSEADDR, &aux, sizeof(aux));
 	if (ret < 0)
-		pr_err("Failed to restore of SO_REUSEADDR on socket (%d)", ret);
+		pr_err("Failed to restore of SO_REUSEADDR on socket (%d)\n", ret);
 }
 
 static void rst_tcp_socks_all(struct task_restore_args *ta)
@@ -636,7 +636,7 @@ static int timerfd_arm(struct task_restore_args *args)
 			 * overflow the limit NSEC_PER_SEC FIXME
 			 */
 			if (sys_clock_gettime(t->clockid, &ts)) {
-				pr_err("Can't get current time");
+				pr_err("Can't get current time\n");
 				return -1;
 			}
 
@@ -688,7 +688,7 @@ static int create_posix_timers(struct task_restore_args *args)
 			}
 
 			if ((long)next_id > args->posix_timers[i].spt.it_id) {
-				pr_err("Can't create timers, kernel don't give them consequently");
+				pr_err("Can't create timers, kernel don't give them consequently\n");
 				return -1;
 			}
 		}
-- 
2.1.0



More information about the CRIU mailing list