From 93da096564540e1f4f0ca9e4fe7b55c15c6bd446 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Wed, 30 Mar 2011 11:43:35 -0400 Subject: [PATCH] [NETFILTER]: nf_conntrack_h323: turn some printks into DEBUGPs kernel.org commit 91e8db80065d655ce1b6d74cadc921671e8d5285 --- .../net/netfilter/nf_conntrack_h323_main.c | 25 +++++++++------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/release/src-rt/linux/linux-2.6/net/netfilter/nf_conntrack_h323_main.c b/release/src-rt/linux/linux-2.6/net/netfilter/nf_conntrack_h323_main.c index ffbe62aab2..6efa410173 100644 --- a/release/src-rt/linux/linux-2.6/net/netfilter/nf_conntrack_h323_main.c +++ b/release/src-rt/linux/linux-2.6/net/netfilter/nf_conntrack_h323_main.c @@ -163,9 +163,7 @@ static int get_tpkt_data(struct sk_buff *skb, unsigned int protoff, } /* Fragmented TPKT */ - if (net_ratelimit()) - printk("nf_ct_h323: " - "fragmented TPKT\n"); + DEBUGP("nf_ct_h323: fragmented TPKT\n"); goto clear_out; } @@ -599,10 +597,9 @@ static int h245_help(struct sk_buff *skb, unsigned int protoff, ret = DecodeMultimediaSystemControlMessage(data, datalen, &mscm); if (ret < 0) { - if (net_ratelimit()) - printk("nf_ct_h245: decoding error: %s\n", - ret == H323_ERROR_BOUND ? - "out of bound" : "out of range"); + DEBUGP("nf_ct_h245: decoding error: %s\n", + ret == H323_ERROR_BOUND ? + "out of bound" : "out of range"); /* We don't drop when decoding error */ break; } @@ -1154,10 +1151,9 @@ static int q931_help(struct sk_buff *skb, unsigned int protoff, /* Decode Q.931 signal */ ret = DecodeQ931(data, datalen, &q931); if (ret < 0) { - if (net_ratelimit()) - printk("nf_ct_q931: decoding error: %s\n", - ret == H323_ERROR_BOUND ? - "out of bound" : "out of range"); + DEBUGP("nf_ct_q931: decoding error: %s\n", + ret == H323_ERROR_BOUND ? + "out of bound" : "out of range"); /* We don't drop when decoding error */ break; } @@ -1741,10 +1737,9 @@ static int ras_help(struct sk_buff *skb, unsigned int protoff, /* Decode RAS message */ ret = DecodeRasMessage(data, datalen, &ras); if (ret < 0) { - if (net_ratelimit()) - printk("nf_ct_ras: decoding error: %s\n", - ret == H323_ERROR_BOUND ? - "out of bound" : "out of range"); + DEBUGP("nf_ct_ras: decoding error: %s\n", + ret == H323_ERROR_BOUND ? + "out of bound" : "out of range"); goto accept; } -- 2.11.4.GIT