ath - move kprintf() under debug variable
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 20 Aug 2014 17:42:24 +0000 (10:42 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 20 Aug 2014 17:42:24 +0000 (10:42 -0700)
* Move an unconditional debugging kprintf() under a debug variable.

sys/dev/netif/ath/ath/if_ath_rx_edma.c

index a33d72a..e03321e 100644 (file)
@@ -559,7 +559,8 @@ ath_edma_recv_tasklet(void *arg, int npending)
        /* Handle resched and kickpcu appropriately */
        ATH_PCU_LOCK(sc);
        if (sc->sc_kickpcu) {
-               kprintf("k(%d,%d)", n1, n2);
+               if (sc->sc_debug & ATH_DEBUG_RECV_DESC)
+                       kprintf("k(%d,%d)", n1, n2);
                sc->sc_kickpcu = 0;
                /* reload imask XXX */
                if (n1 || n2)