kernel/ath: Add missing #ifdef ATH_DEBUG (fixes kernel build).
authorSascha Wildner <saw@online.de>
Wed, 20 Aug 2014 18:49:11 +0000 (20:49 +0200)
committerSascha Wildner <saw@online.de>
Wed, 20 Aug 2014 18:49:11 +0000 (20:49 +0200)
Reported-by: Robin Hahling <robin.hahling@gw-computing.net>
sys/dev/netif/ath/ath/if_ath_rx_edma.c

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