From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbdF1Nhy (ORCPT ); Wed, 28 Jun 2017 09:37:54 -0400 Received: from smtprelay0159.hostedemail.com ([216.40.44.159]:35967 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751642AbdF1Nhs (ORCPT ); Wed, 28 Jun 2017 09:37:48 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:3872:4250:4321:5007:7903:8784:10004:10400:10450:10455:10848:11232:11658:11914:12043:12296:12555:12740:12760:12895:13069:13095:13311:13357:13439:14096:14097:14181:14659:14721:19904:19999:21080:21212:21433:21451:21627:30054:30062:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: fire56_9588a6cfd20b X-Filterd-Recvd-Size: 1758 Message-ID: <1498657062.8633.1.camel@perches.com> Subject: Re: [PATCH] mac80211_hwsim: use dyndbg for debug messages From: Joe Perches To: Lubomir Rintel , Johannes Berg Cc: Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 28 Jun 2017 06:37:42 -0700 In-Reply-To: <20170628131726.15528-1-lkundrak@v3.sk> References: <20170628131726.15528-1-lkundrak@v3.sk> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-06-28 at 15:17 +0200, Lubomir Rintel wrote: > The mac80211_hwsim doesn't offer a way to disable the debugging output. > Unfortunately, it's pretty chatty, dumping a lot of stuff into the message > buffer. > > This patch changes it to use dyndbg for controlling the debug output. > It's disabled by default, but can be enabled by a module parameter (1), > at runtime (2) or persisted in modprobe.conf (3). > > (1) modprobe mac80211_hwsim dyndbg=+p > (2) echo "module mac80211_hwsim +p" >/sys/kernel/debug/dynamic_debug/control > (3) echo "options mac80211_hwsim dyndbg=+p" >>/etc/modprobe.d/my.conf I wonder about the value at all of the 2 forms: wiphy_dbg -> only with #define DEBUG or dynamic_debug wiphy_debug -> always emitted at KERN_DEBUG Is there any real value in wiphy_debug? Should it just be converted to #define wiphy_debug wiphy_dbg or maybe a global sed to remove it completely?