[CRIU] [PATCH] criu: add a few missing newlines in pr_err()

Andrei Vagin avagin at virtuozzo.com
Fri Jul 27 05:18:53 MSK 2018


Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/net.c     | 4 ++--
 criu/sk-unix.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

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)) {
-- 
2.14.3



More information about the CRIU mailing list