From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [RFC net-next 0/2] net: Use net__ratelimit Date: Tue, 15 May 2012 20:27:10 +0200 Message-ID: <1337106430.15553.6.camel@jlt3.sipsolutions.net> References: <20120515.134531.530903973750646107.davem@davemloft.net> <1337104765.7050.24.camel@joe2Laptop> (sfid-20120515_195955_463081_DA730895) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: dev-yBygre7rU0TnMu66kgdUjQ@public.gmane.org, netfilter-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-decnet-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sctp-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, coreteam-Cap9r6Oaw4JrovVCs/uTlw@public.gmane.org, netfilter-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Miller To: Joe Perches Return-path: In-Reply-To: <1337104765.7050.24.camel@joe2Laptop> (sfid-20120515_195955_463081_DA730895) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org Errors-To: dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org List-Id: netfilter-devel.vger.kernel.org On Tue, 2012-05-15 at 10:59 -0700, Joe Perches wrote: > OK, but fyi, there's a possible issue with !CONFIG_DEBUG > builds because these patches converted some uses of > if (net_ratelimit()) > printk(KERN_DEBUG ... > to > net_dbg_ratelimited() > > These messages are no longer emitted when DEBUG isn't defined > and not using dynamic_debug. I'm not sure that's a real > problem, but it's a difference. > > I could produce a net_printk_ratelimited that would keep > the original behavior if necessary. > > net_printk_ratelimited(KERN_DEBUG etc...) Btw, what would the difference be to just plain printk_ratelimited()? johannes