[CRIU] [PATCH 10/16] mem/pmc: Use pr_warn_once if cache is disabled

Mike Rapoport rppt at linux.ibm.com
Mon Jul 8 20:04:44 MSK 2019


On Fri, Jul 05, 2019 at 06:38:05PM +0300, Cyrill Gorcunov wrote:
> No need to spam on every pmc_init call.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>

Reviewed-by: Mike Rapoport <rppt at linux.ibm.com>

> ---
>  criu/pagemap-cache.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/pagemap-cache.c b/criu/pagemap-cache.c
> index a1c2d42f4dfd..c8077612330a 100644
> --- a/criu/pagemap-cache.c
> +++ b/criu/pagemap-cache.c
> @@ -56,7 +56,7 @@ int pmc_init(pmc_t *pmc, pid_t pid, const struct list_head *vma_head, size_t siz
>  		goto err;
>  
>  	if (pagemap_cache_disabled)
> -		pr_debug("The pagemap cache is disabled\n");
> +		pr_warn_once("The pagemap cache is disabled\n");
>  
>  	if (kdat.pmap == PM_DISABLED) {
>  		/*
> -- 
> 2.20.1
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 

-- 
Sincerely yours,
Mike.



More information about the CRIU mailing list