xref: /wlan-driver/qcacld-3.0/core/mac/src/include/sir_debug.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2011-2012, 2014-2015, 2017-2019, 2021 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2024 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 /*
21  * Author:      Sandesh Goel
22  * Date:        02/25/02
23  */
24 
25 #ifndef __POL_DEBUG_H__
26 #define __POL_DEBUG_H__
27 
28 #define LOGOFF  0
29 #define LOGP    1
30 #define LOGE    2
31 #define LOGW    3
32 #define LOG1    4
33 #define LOG2    5
34 #define LOG3    6
35 #define LOG4    7
36 #define LOGD    8
37 
38 #define pe_alert_rl(params...) QDF_TRACE_FATAL_RL(QDF_MODULE_ID_PE, params)
39 #define pe_err_rl(params...) QDF_TRACE_ERROR_RL(QDF_MODULE_ID_PE, params)
40 #define pe_warn_rl(params...) QDF_TRACE_WARN_RL(QDF_MODULE_ID_PE, params)
41 #define pe_info_rl(params...) QDF_TRACE_INFO_RL(QDF_MODULE_ID_PE, params)
42 #define pe_debug_rl(params...) QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_PE, params)
43 
44 #define pe_alert(params...) QDF_TRACE_FATAL(QDF_MODULE_ID_PE, params)
45 #define pe_err(params...) QDF_TRACE_ERROR(QDF_MODULE_ID_PE, params)
46 #define pe_warn(params...) QDF_TRACE_WARN(QDF_MODULE_ID_PE, params)
47 #define pe_info(params...) QDF_TRACE_INFO(QDF_MODULE_ID_PE, params)
48 #define pe_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_PE, params)
49 
50 #define pe_nofl_alert(params...) \
51 	QDF_TRACE_FATAL_NO_FL(QDF_MODULE_ID_PE, params)
52 #define pe_nofl_err(params...) \
53 	QDF_TRACE_ERROR_NO_FL(QDF_MODULE_ID_PE, params)
54 #define pe_nofl_warn(params...) \
55 	QDF_TRACE_WARN_NO_FL(QDF_MODULE_ID_PE, params)
56 #define pe_nofl_info(params...) \
57 	QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_PE, params)
58 #define pe_nofl_debug(params...) \
59 	QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_PE, params)
60 #define pe_nofl_rl_err(params...) \
61 	QDF_TRACE_ERROR_RL_NO_FL(QDF_MODULE_ID_PE, params)
62 #define pe_nofl_rl_debug(params...) \
63 	QDF_TRACE_DEBUG_RL_NO_FL(QDF_MODULE_ID_PE, params)
64 #define pe_nofl_rl_info(params...) \
65 	QDF_TRACE_INFO_RL_NO_FL(QDF_MODULE_ID_PE, params)
66 
67 #define PE_ENTER() QDF_TRACE_ENTER(QDF_MODULE_ID_PE, "enter")
68 #define PE_EXIT() QDF_TRACE_EXIT(QDF_MODULE_ID_PE, "exit")
69 #endif
70