blob: 585412d24629b7eb94255d9498c473ae36e25557 [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 __TL_DEBUG_H__
29#define __TL_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#include "vos_trace.h"
35#ifdef WLAN_DEBUG
36#ifdef WLAN_MDM_DATAPATH_OPT
37#define TLLOGP(x0) x0
38#define TLLOGE(x0) x0
39#define TLLOGW(x0) x0
40#define TLLOG1(x) {}
41#define TLLOG2(x) {}
42#define TLLOG3(x) {}
43#define TLLOG4(x) {}
44
45#else /*WLAN_MDM_DATAPATH_OPT*/
46
47#define TLLOGP(x0) x0
48#define TLLOGE(x0) x0
49#define TLLOGW(x0) x0
50#define TLLOG1(x0) x0
51
52#ifdef TL_DEBUG_LOG2
53#define TLLOG2(x0) x0
54#else
55 #define TLLOG2(x0)
56#endif
57
58#ifdef TL_DEBUG_LOG3
59#define TLLOG3(x0) x0
60#else
61 #define TLLOG3(x0)
62#endif
63
64#ifdef TL_DEBUG_LOG4
65#define TLLOG4(x0) x0
66#else
67 #define TLLOG4(x0)
68#endif
69
70
71#endif /*WLAN_MDM_DATAPATH_OPT*/
72
73#else /* WLAN DEBUG */
74
75#define TLLOGP(x) x
Madan Mohan Koyyalamudic0e5bd82012-09-18 17:12:27 -070076#define TLLOGE(x) x
77#define TLLOGW(x) x
Jeff Johnson295189b2012-06-20 16:38:30 -070078#define TLLOG1(x) {}
79#define TLLOG2(x) {}
80#define TLLOG3(x) {}
81#define TLLOG4(x) {}
82#endif /* WLAN DEBUG */
83
84
85#endif // __TL_DEBUG_H__
86