[Devel] [PATCH RH7] lib/nlattr: use ve_pr_warn_ratelimited instead pr_warn_ratelimited

Kirill Tkhai ktkhai at virtuozzo.com
Fri Dec 25 05:32:56 PST 2015



On 25.12.2015 15:42, Dmitry Safonov wrote:
> https://jira.sw.ru/browse/PSBM-42313
> 
> Signed-off-by: Dmitry Safonov <dsafonov at odin.com>

Acked-by: Kirill Tkhai <ktkhai at virtuozzo.com>

> ---
>  lib/nlattr.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/nlattr.c b/lib/nlattr.c
> index d6f970f..4ecca7d 100644
> --- a/lib/nlattr.c
> +++ b/lib/nlattr.c
> @@ -201,8 +201,9 @@ int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
>  	}
>  
>  	if (unlikely(rem > 0))
> -		pr_warn_ratelimited("netlink: %d bytes leftover after parsing attributes in process `%s'.\n",
> -				    rem, current->comm);
> +		ve_pr_warn_ratelimited(VE_LOG,
> +			"netlink: %d bytes leftover after parsing attributes in process `%s'.\n",
> +			rem, current->comm);
>  
>  	err = 0;
>  errout:
> 


More information about the Devel mailing list