net: Convert net_ratelimit uses to net_<level>_ratelimited
[deliverable/linux.git] / net / netfilter / nf_conntrack_core.c
index 32c59093146ecb3e3bad8cb28cdf1776cbfb7a61..ac3af97cc468eded7991ca98cd9dd6cec7f4d1cb 100644 (file)
@@ -683,10 +683,7 @@ __nf_conntrack_alloc(struct net *net, u16 zone,
            unlikely(atomic_read(&net->ct.count) > nf_conntrack_max)) {
                if (!early_drop(net, hash_bucket(hash, net))) {
                        atomic_dec(&net->ct.count);
-                       if (net_ratelimit())
-                               printk(KERN_WARNING
-                                      "nf_conntrack: table full, dropping"
-                                      " packet.\n");
+                       net_warn_ratelimited("nf_conntrack: table full, dropping packet\n");
                        return ERR_PTR(-ENOMEM);
                }
        }
This page took 0.025529 seconds and 5 git commands to generate.