ah_osdep.c (224045) | ah_osdep.c (225883) |
---|---|
1/*- 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * | 1/*- 2 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27 * THE POSSIBILITY OF SUCH DAMAGES. 28 * |
29 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 224045 2011-07-14 23:30:30Z adrian $ | 29 * $FreeBSD: head/sys/dev/ath/ah_osdep.c 225883 2011-09-30 05:17:57Z adrian $ |
30 */ 31#include "opt_ah.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/sysctl.h> --- 85 unchanged lines hidden (view full) --- 123#ifdef AH_DEBUG 124 125/* This must match the definition in ath_hal/ah_debug.h */ 126#define HAL_DEBUG_UNMASKABLE 0xf0000000 127void 128DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) 129{ 130 if ((mask == HAL_DEBUG_UNMASKABLE) || | 30 */ 31#include "opt_ah.h" 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <sys/sysctl.h> --- 85 unchanged lines hidden (view full) --- 123#ifdef AH_DEBUG 124 125/* This must match the definition in ath_hal/ah_debug.h */ 126#define HAL_DEBUG_UNMASKABLE 0xf0000000 127void 128DO_HALDEBUG(struct ath_hal *ah, u_int mask, const char* fmt, ...) 129{ 130 if ((mask == HAL_DEBUG_UNMASKABLE) || |
131 (ah->ah_config.ah_debug & mask) || | 131 (ah != NULL && ah->ah_config.ah_debug & mask) || |
132 (ath_hal_debug & mask)) { 133 __va_list ap; 134 va_start(ap, fmt); 135 ath_hal_vprintf(ah, fmt, ap); 136 va_end(ap); 137 } 138} 139#undef HAL_DEBUG_UNMASKABLE --- 212 unchanged lines hidden --- | 132 (ath_hal_debug & mask)) { 133 __va_list ap; 134 va_start(ap, fmt); 135 ath_hal_vprintf(ah, fmt, ap); 136 va_end(ap); 137 } 138} 139#undef HAL_DEBUG_UNMASKABLE --- 212 unchanged lines hidden --- |