]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/ah6.c
net: Convert net_ratelimit uses to net_<level>_ratelimited
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / ah6.c
index 2ae79dbeec2feb356f1d91f10a9853cc5f1b5706..a9f4156f7c3f25a692bc173695cd08d60d747076 100644 (file)
@@ -189,8 +189,8 @@ static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *des
 
                                hao = (struct ipv6_destopt_hao *)&opt[off];
                                if (hao->length != sizeof(hao->addr)) {
-                                       if (net_ratelimit())
-                                               printk(KERN_WARNING "destopt hao: invalid header length: %u\n", hao->length);
+                                       net_warn_ratelimited("destopt hao: invalid header length: %u\n",
+                                                            hao->length);
                                        goto bad;
                                }
                                final_addr = hao->addr;