WL_ERROR("wl%d: wlc_ampdu_dotxstatus: tx phy error (0x%x)\n",
                                 wlc->pub->unit, txs->phyerr);
 
-#ifdef BCMDBG
                        if (WL_ERROR_ON()) {
                                prpkt("txpkt (AMPDU)", wlc->osh, p);
                                wlc_print_txdesc((d11txh_t *) p->data);
-                               wlc_print_txstatus(txs);
                        }
-#endif                         /* BCMDBG */
+                       wlc_print_txstatus(txs);
                }
        }
 
 
 static const char *fifo_names[] = {
        "AC_BK", "AC_BE", "AC_VI", "AC_VO", "BCMC", "ATIM" };
 const char *aci_names[] = { "AC_BE", "AC_BK", "AC_VI", "AC_VO" };
+#else
+static const char fifo_names[6][0];
 #endif
 
 static const u8 acbitmap2maxprio[] = {
                                                    (u16) newfragthresh;
                                        }
                                }
-#if defined(BCMDBG)
                        } else
                                WL_ERROR("wl%d: %s txop invalid for rate %d\n",
                                         wlc->pub->unit, fifo_names[queue],
                                         fifo_names[queue],
                                         phylen, wlc->fragthresh[queue],
                                         dur, wlc->edcf_txop[ac]);
-#else
-                       }
-#endif
                }
        }
 
        mcl = ltoh16(txh->MacTxControlLow);
 
        if (txs->phyerr) {
-               WL_ERROR("phyerr 0x%x, rate 0x%x\n",
-                        txs->phyerr, txh->MainRates);
-#if defined(BCMDBG)
-               wlc_print_txdesc(txh);
-#endif
+               if (WL_ERROR_ON()) {
+                       WL_ERROR("phyerr 0x%x, rate 0x%x\n",
+                                txs->phyerr, txh->MainRates);
+                       wlc_print_txdesc(txh);
+               }
                wlc_print_txstatus(txs);
        }
 
 
 extern void wlc_print_hdrs(struct wlc_info *wlc, const char *prefix, u8 *frame,
                           d11txh_t *txh, d11rxhdr_t *rxh, uint len);
 extern void wlc_print_txdesc(d11txh_t *txh);
+#else
+#define wlc_print_txdesc(a)
 #endif
 #if defined(BCMDBG)
 extern void wlc_print_dot11_mac_hdr(u8 *buf, int len);
 
 #ifdef BCMDBG
        extern void prpkt(const char *msg, struct osl_info *osh,
                          struct sk_buff *p0);
+#else
+#define prpkt(a, b, c)
 #endif                         /* BCMDBG */
+
 #define bcm_perf_enable()
 #define bcmstats(fmt)
 #define        bcmlog(fmt, a1, a2)