1 /* 2 * Minimal debug/trace/assert driver definitions for 3 * Broadcom 802.11 Networking Adapter. 4 * 5 * Copyright (C) 1999-2013, Broadcom Corporation 6 * 7 * Unless you and Broadcom execute a separate written software license 8 * agreement governing use of this software, this software is licensed to you 9 * under the terms of the GNU General Public License version 2 (the "GPL"), 10 * available at http://www.broadcom.com/licenses/GPLv2.php, with the 11 * following added to such license: 12 * 13 * As a special exception, the copyright holders of this software give you 14 * permission to link this software with independent modules, and to copy and 15 * distribute the resulting executable under terms of your choice, provided that 16 * you also meet, for each linked independent module, the terms and conditions of 17 * the license of that module. An independent module is a module which is not 18 * derived from this software. The special exception does not apply to any 19 * modifications of the software. 20 * 21 * Notwithstanding the above, under no circumstances may you combine this 22 * software in any way with any other Broadcom software provided under a license 23 * other than the GPL, without Broadcom's express prior written consent. 24 * 25 * $Id: wl_dbg.h 376019 2012-12-21 01:00:06Z $ 26 */ 27 28 29 #ifndef _wl_dbg_h_ 30 #define _wl_dbg_h_ 31 32 /* wl_msg_level is a bit vector with defs in wlioctl.h */ 33 extern uint32 wl_msg_level; 34 extern uint32 wl_msg_level2; 35 36 #define WL_TIMESTAMP() 37 38 #if 0 && (VERSION_MAJOR > 9) 39 #include <IOKit/apple80211/IO8Log.h> 40 #define WL_PRINT(args) do { printf args; IO8Log args; } while (0) 41 #else 42 #define WL_PRINT(args) do { WL_TIMESTAMP(); printf args; } while (0) 43 #endif 44 45 46 /* To disable a message completely ... until you need it again */ 47 #define WL_NONE(args) 48 49 #define WL_ERROR(args) 50 #define WL_TRACE(args) 51 #define WL_APSTA_UPDN(args) 52 #define WL_APSTA_RX(args) 53 #ifdef WLMSG_WSEC 54 #define WL_WSEC(args) WL_PRINT(args) 55 #define WL_WSEC_DUMP(args) WL_PRINT(args) 56 #else 57 #define WL_WSEC(args) 58 #define WL_WSEC_DUMP(args) 59 #endif 60 61 extern uint32 wl_msg_level; 62 extern uint32 wl_msg_level2; 63 #endif /* _wl_dbg_h_ */ 64