[CRIU] [PATCH] files-reg: Use pr_err instead of pr_perror if fd not found

Pavel Emelyanov xemul at parallels.com
Mon Mar 18 14:25:40 EDT 2013


On 03/18/2013 12:50 PM, Cyrill Gorcunov wrote:
> Otherwise
> 
>  | (00.002843)      1: Error (files-reg.c:522): Can't find regfile for 0
>  | : Success
> 
> which is inappropriate here.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  files-reg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/files-reg.c b/files-reg.c
> index 1d48d3c..d59109e 100644
> --- a/files-reg.c
> +++ b/files-reg.c
> @@ -519,7 +519,7 @@ int open_path_by_id(u32 id, int (*open_cb)(struct reg_file_info *, void *), void
>  
>  	fd = find_file_desc_raw(FD_TYPES__REG, id);
>  	if (fd == NULL) {
> -		pr_perror("Can't find regfile for %#x\n", id);
> +		pr_err("Can't find regfile for %#x\n", id);
>  		return -1;
>  	}
>  
> 


Applied


More information about the CRIU mailing list