[CRIU] [PATCH] util: read_fd_link -- Drop redundant \n in pr_perror message

Cyrill Gorcunov gorcunov at openvz.org
Fri Apr 5 07:56:18 EDT 2013


pr_perror adds \n on its own, fix this typo.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 84ef99e..23cc208 100644
--- a/util.c
+++ b/util.c
@@ -428,7 +428,7 @@ int read_fd_link(int lfd, char *buf, size_t size)
 	snprintf(t, sizeof(t), "/proc/self/fd/%d", lfd);
 	ret = readlink(t, buf, size);
 	if (ret < 0) {
-		pr_perror("Can't read link of fd %d\n", lfd);
+		pr_perror("Can't read link of fd %d", lfd);
 		return -1;
 	}
 	buf[ret] = 0;
-- 
1.8.1.4



More information about the CRIU mailing list