1 /* 2 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 /** 20 * DOC: Define the debug utils for MLME 21 */ 22 #ifndef _WLAN_MLME_DBG_H_ 23 #define _WLAN_MLME_DBG_H_ 24 25 #include <qdf_types.h> 26 #include <qdf_trace.h> 27 28 #define mlme_alert(format, args...) \ 29 QDF_TRACE_FATAL(QDF_MODULE_ID_CMN_MLME, format, ## args) 30 31 #define mlme_err(format, args...) \ 32 QDF_TRACE_ERROR(QDF_MODULE_ID_CMN_MLME, format, ## args) 33 34 #define mlme_warn(format, args...) \ 35 QDF_TRACE_WARN(QDF_MODULE_ID_CMN_MLME, format, ## args) 36 37 #define mlme_info(format, args...) \ 38 QDF_TRACE_INFO(QDF_MODULE_ID_CMN_MLME, format, ## args) 39 40 #define mlme_debug(format, args...) \ 41 QDF_TRACE_DEBUG(QDF_MODULE_ID_CMN_MLME, format, ## args) 42 43 #define mlme_nofl_alert(format, args...) \ 44 QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 45 46 #define mlme_nofl_err(format, args...) \ 47 QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 48 49 #define mlme_nofl_warn(format, args...) \ 50 QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 51 52 #define mlme_nofl_info(format, args...) \ 53 QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 54 55 #define mlme_nofl_debug(format, args...) \ 56 QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 57 58 #define mlme_rl_debug(format, args...) \ 59 QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_CMN_MLME, format, ## args) 60 61 #define mlme_rl_nofl_err(format, args...) \ 62 QDF_TRACE_ERROR_RL_NO_FL(QDF_MODULE_ID_CMN_MLME, format, ## args) 63 #endif /* _WLAN_MLME_DBG_H_ */ 64 65