net: Convert LIMIT_NETDEBUG to net_dbg_ratelimited
[deliverable/linux.git] / include / net / udplite.h
index 2caadabcd07baf6552098082fcb78672f772dcb5..9a28a51794009a83d172949cbc5844b917ee5e66 100644 (file)
@@ -40,7 +40,7 @@ static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh)
          * checksum. UDP-Lite (like IPv6) mandates checksums, hence packets
          * with a zero checksum field are illegal.                            */
        if (uh->check == 0) {
-               LIMIT_NETDEBUG(KERN_DEBUG "UDPLite: zeroed checksum field\n");
+               net_dbg_ratelimited("UDPLite: zeroed checksum field\n");
                return 1;
        }
 
@@ -52,8 +52,8 @@ static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh)
                /*
                 * Coverage length violates RFC 3828: log and discard silently.
                 */
-               LIMIT_NETDEBUG(KERN_DEBUG "UDPLite: bad csum coverage %d/%d\n",
-                              cscov, skb->len);
+               net_dbg_ratelimited("UDPLite: bad csum coverage %d/%d\n",
+                                   cscov, skb->len);
                return 1;
 
        } else if (cscov < skb->len) {
This page took 0.023831 seconds and 5 git commands to generate.