diff options
author | adrian <adrian@FreeBSD.org> | 2011-06-23 06:55:29 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-06-23 06:55:29 +0000 |
commit | d00135573a2cb956464d92b084d1337dd4be1910 (patch) | |
tree | 8f16c5f681f3d6e963637221a8a0b3cd133cfad8 /sys/dev/ath/ath_hal/ar5212/ar5212_attach.c | |
parent | 65bbe8b4728cec874007cf3b252103f6641d694b (diff) | |
download | FreeBSD-src-d00135573a2cb956464d92b084d1337dd4be1910.zip FreeBSD-src-d00135573a2cb956464d92b084d1337dd4be1910.tar.gz |
Re-introduce a global ath_hal_debug again for now, whilst I figure out what
to do about the few cases where the HAL state isn't available (regdomain)
or isn't yet setup (probe/attach.)
The global ath_hal_debug now affects all instances of the HAL.
This also restores the ability for probe/attach debugging to work; as
the sysctl tree may not be attached at that point. Users can just set
the global "hw.ath.hal.debug" to a suitable value to enable probe/attach
related debugging.
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5212/ar5212_attach.c')
-rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212_attach.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c b/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c index 8e7f3cb..01c0e2c 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c +++ b/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c @@ -317,13 +317,13 @@ ar5212Attach(uint16_t devid, HAL_SOFTC sc, uint16_t eeval; HAL_STATUS ecode; - HALDEBUG(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", + HALDEBUG_G(AH_NULL, HAL_DEBUG_ATTACH, "%s: sc %p st %p sh %p\n", __func__, sc, (void*) st, (void*) sh); /* NB: memory is returned zero'd */ ahp = ath_hal_malloc(sizeof (struct ath_hal_5212)); if (ahp == AH_NULL) { - HALDEBUG(AH_NULL, HAL_DEBUG_ANY, + HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY, "%s: cannot allocate memory for state block\n", __func__); *status = HAL_ENOMEM; return AH_NULL; |