net: Convert net_ratelimit uses to net_<level>_ratelimited
[deliverable/linux.git] / net / ipv4 / netfilter / arp_tables.c
index a3935273869f0a2402844feaff203bcfb651ba22..97e61eadf5800f8df1054da565beb227e0479568 100644 (file)
@@ -221,9 +221,8 @@ static inline int arp_checkentry(const struct arpt_arp *arp)
 static unsigned int
 arpt_error(struct sk_buff *skb, const struct xt_action_param *par)
 {
-       if (net_ratelimit())
-               pr_err("arp_tables: error: '%s'\n",
-                      (const char *)par->targinfo);
+       net_err_ratelimited("arp_tables: error: '%s'\n",
+                           (const char *)par->targinfo);
 
        return NF_DROP;
 }
This page took 0.122456 seconds and 5 git commands to generate.