staging: brcm80211: consolidate SHOW_EVENTS code under BCMDBG in fullmac
authorFranky Lin <frankyl@broadcom.com>
Thu, 1 Sep 2011 09:17:03 +0000 (11:17 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:38:50 +0000 (16:38 -0700)
Use unify config marco for debug info. Related event debug print out can be
enabled/disabled by the dedicated event message level.

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/Makefile
drivers/staging/brcm80211/brcmfmac/dhd_common.c

index 826a2ba6a73d519369753fed6e6f7e78e05c9e57..3d0878fac7df69e47d1da01a62c42943ff70d83b 100644 (file)
@@ -15,8 +15,6 @@
 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
-ccflags-$(CONFIG_BRCMDBG)      += -DSHOW_EVENTS
-
 ccflags-y += \
        -Idrivers/staging/brcm80211/brcmfmac    \
        -Idrivers/staging/brcm80211/include
index 059289a5d82e629590b6ce7be6579cb89645d0d2..e5214b2908de14c27ddf1cc3ed0161f1fc4a4d0b 100644 (file)
@@ -411,7 +411,7 @@ int brcmf_c_ioctl(struct brcmf_pub *drvr, struct brcmf_c_ioctl *ioc, void *buf,
        return bcmerror;
 }
 
-#ifdef SHOW_EVENTS
+#ifdef BCMDBG
 static void
 brcmf_c_show_host_event(struct brcmf_event_msg *event, void *event_data)
 {
@@ -705,7 +705,7 @@ brcmf_c_show_host_event(struct brcmf_event_msg *event, void *event_data)
                brcmf_dbg(EVENT, "\n");
        }
 }
-#endif                         /* SHOW_EVENTS */
+#endif                         /* BCMDBG */
 
 int
 brcmf_c_host_event(struct brcmf_info *drvr_priv, int *ifidx, void *pktdata,
@@ -796,9 +796,9 @@ brcmf_c_host_event(struct brcmf_info *drvr_priv, int *ifidx, void *pktdata,
                break;
        }
 
-#ifdef SHOW_EVENTS
+#ifdef BCMDBG
        brcmf_c_show_host_event(event, event_data);
-#endif                         /* SHOW_EVENTS */
+#endif                         /* BCMDBG */
 
        return 0;
 }