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

Dmitry Safonov dsafonov at odin.com
Fri Dec 25 04:42:09 PST 2015


https://jira.sw.ru/browse/PSBM-42313

Signed-off-by: Dmitry Safonov <dsafonov at odin.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:
-- 
2.6.4



More information about the Devel mailing list