Commit 4dac517b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

util: read_fd_link -- Drop redundant \n in pr_perror message

pr_perror adds \n on its own, fix this typo.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 41b2b29e
...@@ -428,7 +428,7 @@ int read_fd_link(int lfd, char *buf, size_t size) ...@@ -428,7 +428,7 @@ int read_fd_link(int lfd, char *buf, size_t size)
snprintf(t, sizeof(t), "/proc/self/fd/%d", lfd); snprintf(t, sizeof(t), "/proc/self/fd/%d", lfd);
ret = readlink(t, buf, size); ret = readlink(t, buf, size);
if (ret < 0) { 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; return -1;
} }
buf[ret] = 0; buf[ret] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment