[Devel] [PATCH RHEL7 COMMIT] ve/lib/nlattr: use ve_pr_warn_ratelimited instead pr_warn_ratelimited

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jan 18 08:04:53 PST 2016


The commit is pushed to "branch-rh7-3.10.0-327.3.1-vz7.10.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-327.3.1.vz7.10.1
------>
commit 694080df5ce4d3881a1cc3e2a57d6bea537a1730
Author: Dmitry Safonov <dsafonov at virtuozzo.com>
Date:   Mon Jan 18 20:03:08 2016 +0400

    ve/lib/nlattr: use ve_pr_warn_ratelimited instead pr_warn_ratelimited
    
    https://jira.sw.ru/browse/PSBM-42313
    
    Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
    Acked-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 lib/nlattr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/nlattr.c b/lib/nlattr.c
index 6de462c..4ecca7d 100644
--- a/lib/nlattr.c
+++ b/lib/nlattr.c
@@ -201,9 +201,9 @@ int nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
 	}
 
 	if (unlikely(rem > 0))
-		ve_printk(VE_LOG, KERN_WARNING "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