criu: add a few missing newlines in pr_err()

Submitted by Andrei Vagin on July 27, 2018, 2:18 a.m.

Details

Message ID 20180727021853.3993-1-avagin@virtuozzo.com
State New
Series "criu: add a few missing newlines in pr_err()"
Headers show

Commit Message

Andrei Vagin July 27, 2018, 2:18 a.m.
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 criu/net.c     | 4 ++--
 criu/sk-unix.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/criu/net.c b/criu/net.c
index cbd03dd0a..29cc84d72 100644
--- a/criu/net.c
+++ b/criu/net.c
@@ -1233,7 +1233,7 @@  static int veth_peer_info(struct net_link *link, struct newlink_req *req,
 		return 0;
 	}
 out:
-	pr_err("Unknown peer net namespace");
+	pr_err("Unknown peer net namespace\n");
 	return -1;
 }
 
@@ -1703,7 +1703,7 @@  static int restore_links()
 		if (nrcreated == nrlinks)
 			break;
 		if (nrcreated == 0) {
-			pr_err("Unable to restore network links");
+			pr_err("Unable to restore network links\n");
 			return -1;
 		}
 	}
diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index cfe0fa18b..2ed124d0f 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -302,7 +302,7 @@  static int resolve_rel_name(uint32_t id, struct unix_sk_desc *sk, const struct f
 		dir[ret] = 0;
 
 		if (snprintf(path, sizeof(path), ".%s/%s", dir, sk->name) >= sizeof(path)) {
-			pr_err("The path .%s/%s is too long", dir, sk->name);
+			pr_err("The path .%s/%s is too long\n", dir, sk->name);
 			goto err;
 		}
 		if (fstatat(mntns_root, path, &st, 0)) {