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

Pavel Emelyanov xemul at parallels.com
Tue Apr 9 17:23:27 EDT 2013


On 04/05/2013 03:56 PM, Cyrill Gorcunov wrote:
> 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;
> 


applied


More information about the CRIU mailing list