Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753130Ab3J0Kdr (ORCPT ); Sun, 27 Oct 2013 06:33:47 -0400 Received: from shrek-wifi.podlesie.net ([93.179.225.50]:49777 "EHLO shrek.podlesie.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207Ab3J0Kdp (ORCPT ); Sun, 27 Oct 2013 06:33:45 -0400 Date: Sun, 27 Oct 2013 11:33:41 +0100 From: Krzysztof Mazur To: Joe Perches Cc: Greg Kroah-Hartman , Jason Baron , Andrew Morton , Felipe Balbi , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH V2] printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages Message-ID: <20131027103341.GA16146@shrek.podlesie.net> References: <20131026132955.GA9251@shrek.podlesie.net> <20131026173730.GA18320@kroah.com> <1382813522.3238.4.camel@joe-AO722> <20131026190151.GA26389@kroah.com> <1382845313.3238.28.camel@joe-AO722> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382845313.3238.28.camel@joe-AO722> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1306 Lines: 34 On Sat, Oct 26, 2013 at 08:41:53PM -0700, Joe Perches wrote: > pr_debug_ratelimited should be coded similarly to dev_dbg_ratelimited > to reduce the "callbacks suppressed" messages. > > Add #include to printk.h. Unfortunately, this > new #include must be after the prototype/declaration of function printk. > > It may be better to split out these _ratelimited declarations into > a separate file one day. > > Any use of these pr__ratelimited functions must also have another > specific #include . Most users have this done indirectly > via #include > > printk.h may not #include as it causes circular > dependencies and compilation failures. > > Signed-off-by: Joe Perches > --- > V2: Fix #include dependencies and typos. > > Compile tested with and without CONFIG_DYNAMIC_DEBUG I've tested both patches without CONFIG_DYNAMIC_DEBUG and with enabled and disabled debugging with CONFIG_DYNAMIC_DEBUG and everything seems work correctly. Thanks, Krzysiek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/