blob: b0958cdb64c41319c1b557b488b3346b297f68f3 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Kiet Lam988a5522014-02-19 01:15:45 -08002 * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
3 *
4 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5 *
6 *
7 * Permission to use, copy, modify, and/or distribute this software for
8 * any purpose with or without fee is hereby granted, provided that the
9 * above copyright notice and this permission notice appear in all
10 * copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19 * PERFORMANCE OF THIS SOFTWARE.
Gopichand Nakkala9c070ad2013-01-08 21:16:34 -080020 */
Kiet Lam988a5522014-02-19 01:15:45 -080021
22/*
23 * This file was originally distributed by Qualcomm Atheros, Inc.
24 * under proprietary terms before Copyright ownership was assigned
25 * to the Linux Foundation.
26 */
27
Jeff Johnson295189b2012-06-20 16:38:30 -070028#ifndef __WDA_DEBUG_H__
29#define __WDA_DEBUG_H__
Jeff Johnson8347b442013-03-07 08:15:44 -080030#if !defined (ANI_OS_TYPE_ANDROID)
Jeff Johnson295189b2012-06-20 16:38:30 -070031#include <stdio.h>
32#endif
33#include <stdarg.h>
34
35#include "utilsApi.h"
36#include "sirDebug.h"
37#include "sirParams.h"
38#define WDA_DEBUG_LOGIDX ( LOG_INDEX_FOR_MODULE(SIR_WDA_MODULE_ID) )
39
40
41
42#ifdef WLAN_DEBUG
43
44#define WDALOGP(x0) x0
45#define WDALOGE(x0) x0
46#define WDALOGW(x0) x0
47#define WDALOG1(x0) x0
48
49#ifdef HAL_DEBUG_LOG2
50#define WDALOG2(x0) x0
51#else
52 #define WDALOG2(x0)
53#endif
54
55#ifdef HAL_DEBUG_LOG3
56#define WDALOG3(x0) x0
57#else
58 #define WDALOG3(x0)
59#endif
60
61#ifdef HAL_DEBUG_LOG4
62#define WDALOG4(x0) x0
63#else
64 #define WDALOG4(x0)
65#endif
66
67#define STR(x) x
68
69#else
70
71#define WDALOGP(x) x
72#define WDALOGE(x) {}
73#define WDALOGW(x) {}
74#define WDALOG1(x) {}
75#define WDALOG2(x) {}
76#define WDALOG3(x) {}
77#define WDALOG4(x) {}
78#define STR(x) ""
79#endif
80
81void wdaLog(tpAniSirGlobal pMac, tANI_U32 loglevel, const char *pString,...);
82
83#endif // __WDA_DEBUG_H__
84