blob: addf674558461e59d64c249f6bb27d0b6e3d3b73 [file] [log] [blame]
Jeff Johnson295189b2012-06-20 16:38:30 -07001/*
Gopichand Nakkala92f07d82013-01-08 21:16:34 -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.
20 */
21/*
Jeff Johnson32d95a32012-09-10 13:15:23 -070022 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Jeff Johnson295189b2012-06-20 16:38:30 -070023 *
24 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
25 *
26 *
27 * Permission to use, copy, modify, and/or distribute this software for
28 * any purpose with or without fee is hereby granted, provided that the
29 * above copyright notice and this permission notice appear in all
30 * copies.
31 *
32 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
33 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
34 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
35 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
36 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
37 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
38 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 * PERFORMANCE OF THIS SOFTWARE.
40 */
41
42#ifndef __TL_DEBUG_H__
43#define __TL_DEBUG_H__
44#if (!defined ANI_OS_TYPE_OSX && !defined (ANI_OS_TYPE_ANDROID))
45#include <stdio.h>
46#endif
47#include <stdarg.h>
48#include "vos_trace.h"
49#ifdef WLAN_DEBUG
50#ifdef WLAN_MDM_DATAPATH_OPT
51#define TLLOGP(x0) x0
52#define TLLOGE(x0) x0
53#define TLLOGW(x0) x0
54#define TLLOG1(x) {}
55#define TLLOG2(x) {}
56#define TLLOG3(x) {}
57#define TLLOG4(x) {}
58
59#else /*WLAN_MDM_DATAPATH_OPT*/
60
61#define TLLOGP(x0) x0
62#define TLLOGE(x0) x0
63#define TLLOGW(x0) x0
64#define TLLOG1(x0) x0
65
66#ifdef TL_DEBUG_LOG2
67#define TLLOG2(x0) x0
68#else
69 #define TLLOG2(x0)
70#endif
71
72#ifdef TL_DEBUG_LOG3
73#define TLLOG3(x0) x0
74#else
75 #define TLLOG3(x0)
76#endif
77
78#ifdef TL_DEBUG_LOG4
79#define TLLOG4(x0) x0
80#else
81 #define TLLOG4(x0)
82#endif
83
84
85#endif /*WLAN_MDM_DATAPATH_OPT*/
86
87#else /* WLAN DEBUG */
88
89#define TLLOGP(x) x
Madan Mohan Koyyalamudic0e5bd82012-09-18 17:12:27 -070090#define TLLOGE(x) x
91#define TLLOGW(x) x
Jeff Johnson295189b2012-06-20 16:38:30 -070092#define TLLOG1(x) {}
93#define TLLOG2(x) {}
94#define TLLOG3(x) {}
95#define TLLOG4(x) {}
96#endif /* WLAN DEBUG */
97
98
99#endif // __TL_DEBUG_H__
100