Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame^] | 2 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 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 | |
| 22 | #ifndef __TL_DEBUG_H__ |
| 23 | #define __TL_DEBUG_H__ |
| 24 | #if (!defined ANI_OS_TYPE_OSX && !defined (ANI_OS_TYPE_ANDROID)) |
| 25 | #include <stdio.h> |
| 26 | #endif |
| 27 | #include <stdarg.h> |
| 28 | #include "vos_trace.h" |
| 29 | #ifdef WLAN_DEBUG |
| 30 | #ifdef WLAN_MDM_DATAPATH_OPT |
| 31 | #define TLLOGP(x0) x0 |
| 32 | #define TLLOGE(x0) x0 |
| 33 | #define TLLOGW(x0) x0 |
| 34 | #define TLLOG1(x) {} |
| 35 | #define TLLOG2(x) {} |
| 36 | #define TLLOG3(x) {} |
| 37 | #define TLLOG4(x) {} |
| 38 | |
| 39 | #else /*WLAN_MDM_DATAPATH_OPT*/ |
| 40 | |
| 41 | #define TLLOGP(x0) x0 |
| 42 | #define TLLOGE(x0) x0 |
| 43 | #define TLLOGW(x0) x0 |
| 44 | #define TLLOG1(x0) x0 |
| 45 | |
| 46 | #ifdef TL_DEBUG_LOG2 |
| 47 | #define TLLOG2(x0) x0 |
| 48 | #else |
| 49 | #define TLLOG2(x0) |
| 50 | #endif |
| 51 | |
| 52 | #ifdef TL_DEBUG_LOG3 |
| 53 | #define TLLOG3(x0) x0 |
| 54 | #else |
| 55 | #define TLLOG3(x0) |
| 56 | #endif |
| 57 | |
| 58 | #ifdef TL_DEBUG_LOG4 |
| 59 | #define TLLOG4(x0) x0 |
| 60 | #else |
| 61 | #define TLLOG4(x0) |
| 62 | #endif |
| 63 | |
| 64 | |
| 65 | #endif /*WLAN_MDM_DATAPATH_OPT*/ |
| 66 | |
| 67 | #else /* WLAN DEBUG */ |
| 68 | |
| 69 | #define TLLOGP(x) x |
| 70 | #define TLLOGE(x) {} |
| 71 | #define TLLOGW(x) {} |
| 72 | #define TLLOG1(x) {} |
| 73 | #define TLLOG2(x) {} |
| 74 | #define TLLOG3(x) {} |
| 75 | #define TLLOG4(x) {} |
| 76 | #endif /* WLAN DEBUG */ |
| 77 | |
| 78 | |
| 79 | #endif // __TL_DEBUG_H__ |
| 80 | |