Return-path: Received: from mms1.broadcom.com ([216.31.210.17]:4659 "EHLO mms1.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754920Ab1ERWqS (ORCPT ); Wed, 18 May 2011 18:46:18 -0400 Message-ID: <4DD44C21.1080502@broadcom.com> (sfid-20110519_004632_573273_5579B145) Date: Wed, 18 May 2011 15:45:53 -0700 From: "Henry Ptasinski" MIME-Version: 1.0 To: "Joe Perches" cc: "Brett Rudley" , "Greg Kroah-Hartman" , "linux-kernel@vger.kernel.org" , "devel@driverdev.osuosl.org" , "Dowan Kim" , "Roland Vossen" , "Arend Van Spriel" , "linux-wireless@vger.kernel.org" , "Henry Ptasinski" , "Franky (Zhenhui) Lin" Subject: Re: [PATCH] staging: brcm80211: brcmfmac: Add and use dhd_dbg References: <60c19c2ad4f078b6f283b5ff4ecca3653833ea28.1305742868.git.joe@perches.com> In-Reply-To: <60c19c2ad4f078b6f283b5ff4ecca3653833ea28.1305742868.git.joe@perches.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 05/18/2011 11:23 AM, Joe Perches wrote: > All uses of DHD_ macros are for debugging only. > > Change the multiple uses of DHD_((...)) to dhd_dbg(TYPE, ...) > for a more consistent style. I generally like this approach, but in brcmsmac we've been switching to wiphy_err() and related instead. Any strong argument for one over the other? > - DHD_TRACE(("%s: Enter\n", __func__)); > + dhd_dbg(TRACE, "%s: Enter\n", __func__); I'd propose moving __func__ into the macro definition itself, which would help ensure consistency (and shorten all the debug lines a bit). Also, perhaps rename to "brcm_dbg()", "bcm_dbg()" or something like that and move it into include/bcmutils.h, so brcmsmac can use it as well. - Henry