From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from shards.monkeyblade.net ([198.137.202.13]:41060 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965999Ab2EOSbn (ORCPT ); Tue, 15 May 2012 14:31:43 -0400 Date: Tue, 15 May 2012 14:29:22 -0400 (EDT) Message-Id: <20120515.142922.1434224550630736456.davem@davemloft.net> (sfid-20120515_203206_287469_F4F93A38) To: johannes@sipsolutions.net Cc: joe@perches.com, netdev@vger.kernel.org, linux-decnet-user@lists.sourceforge.net, netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, linux-wireless@vger.kernel.org, dev@openvswitch.org, linux-sctp@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC net-next 0/2] net: Use net__ratelimit From: David Miller In-Reply-To: <1337106430.15553.6.camel@jlt3.sipsolutions.net> References: <20120515.134531.530903973750646107.davem@davemloft.net> <1337104765.7050.24.camel@joe2Laptop> <1337106430.15553.6.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Johannes Berg Date: Tue, 15 May 2012 20:27:10 +0200 > 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()? printk_ratelimited() drops a local ratelimit cookie into each call-site, whereas we have a global one for the networking which these new interfaces use. Joe explained this completely in his 0/2 patch posting.