From: Joe Perches Date: Mon, 20 May 2013 09:01:23 -0700 Subject: [ath9k-devel] [PATCH 1/2] ath10k: Convert ath10k_dbg uses In-Reply-To: <8738tii0qj.fsf@kamboji.qca.qualcomm.com> References: <20130515143356.4492.43033.stgit@localhost6.localdomain6> <1368639816.2194.9.camel@joe-AO722> <8761yknn7i.fsf@kamboji.qca.qualcomm.com> <1368687816.2194.49.camel@joe-AO722> <51949805.7010509@tieto.com> <8738tii0qj.fsf@kamboji.qca.qualcomm.com> Message-ID: <1369065683.2143.16.camel@joe-AO722> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Mon, 2013-05-20 at 10:12 +0300, Kalle Valo wrote: > Michal Kazior writes: > > > On 16/05/13 09:03, Joe Perches wrote: > >> Neaten and shorten the uses of ath10k_dbg and ath10k_dbg_dump. > >> > >> Add macros to hold the "ATH10K_DBG_" mask portion of the functions. > > > > I'm not really fond of this idea. It's harder to locate symbols when > > doing macro name concatenation. You can't jump to, e.g. WMI symbol > > definition because it doesn't exist (ATH10K_DBG_WMI is what you > > actually want). Although you don't look for this symbol often so I > > guess it's okay-ish. > > That's a good point. I sometimes use cscope to find all messages with > certain level, this patch makes that impossible. And I don't really see > that we have problems with ATH10K_DBG_WMI being too long. from the diffstat: 12 files changed, 226 insertions(+), 260 deletions(-) Reducing the line count has value and I've always found code like: long_function_name(long_function_name_variant, ...) more readable and less error prone as long_function_name(variant, ...) grep -w works well for me, but I'm not a cscope user.