net: Convert net_ratelimit uses to net_<level>_ratelimited
[deliverable/linux.git] / net / ipv6 / netfilter / ip6table_mangle.c
index 00d19173db7e6003cd0d0c1c25783b0dc3760708..4d782405f125da5e7819333ce7dfadd501044c12 100644 (file)
@@ -42,8 +42,7 @@ ip6t_mangle_out(struct sk_buff *skb, const struct net_device *out)
        /* root is playing with raw sockets. */
        if (skb->len < sizeof(struct iphdr) ||
            ip_hdrlen(skb) < sizeof(struct iphdr)) {
-               if (net_ratelimit())
-                       pr_warning("ip6t_hook: happy cracking.\n");
+               net_warn_ratelimited("ip6t_hook: happy cracking\n");
                return NF_ACCEPT;
        }
 #endif
This page took 0.023194 seconds and 5 git commands to generate.