1e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/******************************************************************************
2e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *
3e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  Copyright (C) 1999-2012 Broadcom Corporation
4e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *
5e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  Licensed under the Apache License, Version 2.0 (the "License");
6e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  you may not use this file except in compliance with the License.
7e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  You may obtain a copy of the License at:
8e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *
9e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  http://www.apache.org/licenses/LICENSE-2.0
10e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *
11e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  Unless required by applicable law or agreed to in writing, software
12e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  distributed under the License is distributed on an "AS IS" BASIS,
13e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  See the License for the specific language governing permissions and
15e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *  limitations under the License.
16e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project *
17e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project ******************************************************************************/
18e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BT_TRACE_H
19e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_H
20e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
21e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BTTRC_INCLUDED
22e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_INCLUDED  FALSE
23e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
24e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BTTRC_PARSER_INCLUDED
25e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_PARSER_INCLUDED FALSE
26e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
27e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef MAX_TRACE_RAM_SIZE
28e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MAX_TRACE_RAM_SIZE 10000
29e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
30e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
31e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* BTE tracing IDs for debug purposes */
32e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* LayerIDs for stack */
33e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_GKI                   1
34e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTU                   2
35e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_HCI                   3
36e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_L2CAP                 4
37e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_RFCM_MX               5
38e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_RFCM_PRT              6
39e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_OBEX_C                7
40e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_OBEX_S                8
41e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_AVCT                  9
42e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_AVDT                  10
43e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_AVRC                  11
44e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BIC                   12
45e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BIS                   13
46e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BNEP                  14
47e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BPP                   15
48e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_ACL               16
49e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_PM                17
50e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_DEV_CTRL          18
51e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_SVC_DSC           19
52e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_INQ               20
53e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_SCO               21
54e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_BTM_SEC               22
55e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_DUN                   23
56e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_HID                   24
57e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_HSP2                  25
58e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_CTP                   26
59e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_FTC                   27
60e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_FTS                   28
61e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_GAP                   29
62e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_GOEP                  30
63e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_HCRP                  31
64e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_ICP                   32
65e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_OPC                   33
66e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_OPS                   34
67e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_PAN                   35
68e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SAP                   36
69e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SDP                   37
70e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SLIP                  38
71e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SPP                   39
72e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_TCS                   40
73e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_VDP                   41
74e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_AMP                   42
75e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_MCAP                  43
76e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_GATT                  44
77e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SMP                   45
78e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_NFC                   46
79e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_NCI                   47
80e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_IDEP                  48
81e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_NDEP                  49
82e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_LLCP                  50
83e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_RW                    51
84e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_CE                    52
85e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_SNEP                  53
86e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_STK_NDEF                  54
87e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
88e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
89e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* LayerIDs for BTA */
90e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_ACC                   55         /* Advanced Camera Client */
91e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_AG                    56         /* audio gateway */
92e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_AV                    57         /* Advanced audio */
93e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_BIC                   58         /* Basic Imaging Client */
94e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_BIS                   59         /* Basic Imaging Server */
95e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_BP                    60         /* Basic Printing Client */
96e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_CG                    61
97e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_CT                    62         /* cordless telephony terminal */
98e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_DG                    63         /* data gateway */
99e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_DM                    64         /* device manager */
100e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_DM_SRCH               65         /* device manager search */
101e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_DM_SEC                66         /* device manager security */
102e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_FM                    67
103e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_FTC                   68         /* file transfer client */
104e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_FTS                   69         /* file transfer server */
105e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_HIDH                  70
106e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_HIDD                  71
107e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_JV                    72
108e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_OPC                   73         /* object push client */
109e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_OPS                   74         /* object push server */
110e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_PAN                   75         /* Personal Area Networking */
111e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_PR                    76         /* Printer client */
112e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_SC                    77         /* SIM Card Access server */
113e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_SS                    78         /* synchronization server */
114e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTA_SYS                   79         /* system manager */
115e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_AVDT_SCB                  80         /* avdt scb */
116e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_AVDT_CCB                  81         /* avdt ccb */
117e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
118e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* LayerIDs for BT APP */
119e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_BTAPP                     82
120e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_MAX_ID                    BTTRC_ID_BTAPP
121e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ID_ALL_LAYERS                0xFF       /* all trace layers */
122e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projecttypedef UINT8 tBTTRC_LAYER_ID;
123e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
124e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Trace type definitions. Note that these are mutually exclusive in a trace. This
125e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectmeans that any trace can be either error,warning,api,event or dbg */
126e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if (BTU_STACK_LITE_ENABLED == TRUE)
127e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_ERROR                   0x81
128e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_WARNING                 0x82
129e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_API                     0x84
130e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_EVENT                   0x88
131e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_ACTION                  0x90
132e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_DBG                     0xA0
133e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else
134e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_ERROR                   0x01       /* Traces for error situation */
135e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_WARNING	               0x02       /* Traces for warning situation */
136e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_API                     0x04       /* Traces for API */
137e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_EVENT                   0x08       /* Traces for EVENT */
138e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_ACTION                  0x10       /* Traces for Action functions */
139e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TYPE_DBG                     0x20       /* Traces for debugging purpose */
140e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
141e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projecttypedef UINT8 tBTTRC_TYPE;
142e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
143e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Masks to identify the stack that originated the trace */
144e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TRACE_LITE                   0x80       /* MM Lite stack */
145e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TRACE_EMBD                   0x40       /* Embedded host stack */
146e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
147e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Parameter datatypes used in Trace APIs */
148e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_PARAM_UINT8                  1
149e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_PARAM_UINT16                 2
150e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_PARAM_UINT32                 3
151e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projecttypedef UINT8 tBTTRC_PARAM_TYPE;
152e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
153e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Special token definitions */
154e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_TOKEN_SM_STATE               0xFFFF     /* Token indicating the State of a State m/c */
155e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
156e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
157e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifdef __cplusplus
158e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern "C" {
159e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
160e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
161e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* External declaration for appl_trace_level here to avoid to add the declaration in all the files using APPL_TRACExxx macros */
162e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern UINT8 appl_trace_level ;
163e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
164e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Prototype for message logging function. */
165e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...);
166e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_0 (UINT32 trace_set_mask, const char *p_str);
167e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_1 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1);
168e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_2 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2);
169e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_3 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2,
170e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                      UINT32 p3);
171e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_4 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2,
172e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                      UINT32 p3, UINT32 p4);
173e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_5 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2,
174e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                      UINT32 p3, UINT32 p4, UINT32 p5);
175e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Projectextern void LogMsg_6 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2,
176e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                      UINT32 p3, UINT32 p4, UINT32 p5, UINT32 p6);
177e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
178e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Prototype for stack tracing function. */
179e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace0(tBTTRC_LAYER_ID layer_id,
180e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
181e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token);
182e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace1(tBTTRC_LAYER_ID layer_id,
183e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
184e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
185e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val);
186e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace2(tBTTRC_LAYER_ID layer_id,
187e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
188e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
189e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val,
190e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val);
191e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace3(tBTTRC_LAYER_ID layer_id,
192e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
193e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
194e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val,
195e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val,
196e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val);
197e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace4(tBTTRC_LAYER_ID layer_id,
198e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
199e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
200e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val,
201e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val,
202e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val,
203e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val);
204e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace5(tBTTRC_LAYER_ID layer_id,
205e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
206e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
207e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val,
208e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val,
209e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val,
210e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val,
211e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p5_type, UINT32 p5_val);
212e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source ProjectEXPORT_API extern void BTTRC_StackTrace6(tBTTRC_LAYER_ID layer_id,
213e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_TYPE type,
214e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   UINT16 token,
215e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val,
216e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val,
217e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val,
218e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val,
219e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p5_type, UINT32 p5_val,
220e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                   tBTTRC_PARAM_TYPE p6_type, UINT32 p6_val);
221e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
222e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifdef __cplusplus
223e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project}
224e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
225e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
226e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/******************************************************************************
227e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**
228e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project** Trace configurable parameters
229e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**
230e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project******************************************************************************/
231e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
232e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Enables or disables verbose trace information. */
233e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BT_TRACE_VERBOSE
234e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_VERBOSE    FALSE
235e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
236e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
237e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Enables or disables all trace messages. */
238e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BT_USE_TRACES
239e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_USE_TRACES       TRUE
240e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
241e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
242e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Enables or disables protocol trace information. */
243e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BT_TRACE_PROTOCOL
244a24be4f06674b2707b57904deaa0dff5a95823bdEvan Chu#define BT_TRACE_PROTOCOL   TRUE  /* Android requires TRUE */
245e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
246e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
247e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/******************************************************************************
248e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**
249e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project** Trace Levels
250e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**
251e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project** The following values may be used for different levels:
252e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_NONE    0        * No trace messages to be generated
253e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_ERROR   1        * Error condition trace messages
254e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_WARNING 2        * Warning condition trace messages
255e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_API     3        * API traces
256e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_EVENT   4        * Debug messages for events
257e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project**      BT_TRACE_LEVEL_DEBUG   5        * Debug messages (general)
258e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project******************************************************************************/
259e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
260e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Core Stack default trace levels */
261e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HCI_INITIAL_TRACE_LEVEL
262e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
263e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
264e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
265e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BTM_INITIAL_TRACE_LEVEL
266e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
267e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
268e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
269e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef L2CAP_INITIAL_TRACE_LEVEL
270e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_INITIAL_TRACE_LEVEL           BT_TRACE_LEVEL_DEBUG
271e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
272e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
273e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef LLCP_INITIAL_TRACE_LEVEL
274e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
275e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
276e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
277e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef AMP_INITIAL_TRACE_LEVEL
278e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
279e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
280e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
281e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef RFCOMM_INITIAL_TRACE_LEVEL
282e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_INITIAL_TRACE_LEVEL          BT_TRACE_LEVEL_DEBUG
283e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
284e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
285e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef OBX_INITIAL_TRACE_LEVEL
286e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
287e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
288e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
289e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef SDP_INITIAL_TRACE_LEVEL
290e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
291e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
292e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
293e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef TCS_INITIAL_TRACE_LEVEL
294e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
295e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
296e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
297e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Profile default trace levels */
298e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef DUN_INITIAL_TRACE_LEVEL
299e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
300e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
301e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
302e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef GAP_INITIAL_TRACE_LEVEL
303e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
304e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
305e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
306e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef GOEP_INITIAL_TRACE_LEVEL
307e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
308e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
309e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
310e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HSP2_INITIAL_TRACE_LEVEL
311e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
312e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
313e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
314e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef SPP_INITIAL_TRACE_LEVEL
315e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
316e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
317e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
318e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef ICP_INITIAL_TRACE_LEVEL
319e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
320e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
321e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
322e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef CTP_INITIAL_TRACE_LEVEL
323e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
324e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
325e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
326e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HCRP_INITIAL_TRACE_LEVEL
327e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
328e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
329e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
330e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HCRPM_INITIAL_TRACE_LEVEL
331e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_INITIAL_TRACE_LEVEL           BT_TRACE_LEVEL_DEBUG
332e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
333e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
334e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BPP_INITIAL_TRACE_LEVEL
335e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
336e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
337e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
338e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BIP_INITIAL_TRACE_LEVEL
339e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
340e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
341e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
342e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BNEP_INITIAL_TRACE_LEVEL
343e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
344e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
345e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
346e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef PAN_INITIAL_TRACE_LEVEL
347e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
348e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
349e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
350e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef SAP_INITIAL_TRACE_LEVEL
351e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
352e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
353e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
354e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef FTP_INITIAL_TRACE_LEVEL
355e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
356e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
357e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
358e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef OPP_INITIAL_TRACE_LEVEL
359e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
360e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
361e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
362e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HFP_INITIAL_TRACE_LEVEL
363e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HFP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
364e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
365e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
366e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef A2D_INITIAL_TRACE_LEVEL
367e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
368e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
369e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
370e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef VDP_INITIAL_TRACE_LEVEL
371e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
372e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
373e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
374e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef AVDT_INITIAL_TRACE_LEVEL
375e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
376e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
377e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
378e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef AVCT_INITIAL_TRACE_LEVEL
379e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
380e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
381e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
382e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef AVRC_INITIAL_TRACE_LEVEL
383e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
384e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
385e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
386e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef MCA_INITIAL_TRACE_LEVEL
387e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
388e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
389e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
390e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef HID_INITIAL_TRACE_LEVEL
391e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HID_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
392e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
393e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
394e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Application and other default trace levels */
395e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef RPC_INITIAL_TRACE_LEVEL
396e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
397e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
398e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
399e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef APPL_INITIAL_TRACE_LEVEL
400e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_INITIAL_TRACE_LEVEL            BT_TRACE_LEVEL_DEBUG
401e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
402e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
403e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef BT_TRACE_APPL
404e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_APPL   BT_USE_TRACES
405e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
406e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
407e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef NFC_INITIAL_TRACE_LEVEL
408e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
409e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
410e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
411e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef GATT_INITIAL_TRACE_LEVEL
412e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
413e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
414e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
415e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#ifndef SMP_INITIAL_TRACE_LEVEL
416e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_INITIAL_TRACE_LEVEL             BT_TRACE_LEVEL_DEBUG
417e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
418e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
419e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
420e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if (BTTRC_INCLUDED == TRUE)
421e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
422e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* BTTRC MACROS */
423e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
424e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_EVENT(lid, event, state)   \
425e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace1(lid, BTTRC_TYPE_EVENT, event, BTTRC_PARAM_UINT8, state);}
426e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ACTION(lid, action)  \
427e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace0(lid, BTTRC_TYPE_ACTION, action);}
428e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_STATE(lid, state)   \
429e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace1(lid, BTTRC_TYPE_EVENT, BTTRC_TOKEN_SM_STATE, BTTRC_PARAM_UINT8, state);}
430e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
431e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API0(lid, api)  \
432e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace0(lid, BTTRC_TYPE_API, api);}
433e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API1(lid, api, p1_t,p1_v)  \
434e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace1(lid, BTTRC_TYPE_API, api, p1_t,p1_v);}
435e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API2(lid, api, p1_t,p1_v,p2_t,p2_v)  \
436e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace2(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v);}
437e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API3(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)  \
438e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace3(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v);}
439e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API4(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)  \
440e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace4(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v);}
441e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API5(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)  \
442e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace5(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v);}
443e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API6(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)  \
444e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace6(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v);}
445e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
446e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
447e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG0(lid, dbg)  \
448e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace0(lid, BTTRC_TYPE_DBG, dbg);}
449e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG1(lid, dbg, p1_t,p1_v)  \
450e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace1(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v);}
451e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG2(lid, dbg, p1_t,p1_v,p2_t,p2_v)  \
452e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace2(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v);}
453e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG3(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)  \
454e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace3(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v);}
455e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG4(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)  \
456e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace4(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v);}
457e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG5(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)  \
458e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace5(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v);}
459e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG6(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)  \
460e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            {BTTRC_StackTrace6(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v);}
461e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
462e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
463e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT MACROS */
464e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
465e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API0(api)   \
466e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project        BTTRC_API0(BTTRC_ID_STK_AVDT, api)
467e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API1(api, p1_t, p1_v) \
468e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project        BTTRC_API1(BTTRC_ID_STK_AVDT, api, p1_t, p1_v)
469e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API2(api, p1_t, p1_v, p2_t, p2_v) \
470e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project        BTTRC_API2(BTTRC_ID_STK_AVDT, api, p1_t, p1_v, p2_t, p2_v)
471e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
472e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT_SCB MACROS */
473e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
474e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_EVENT(event, state)   \
475e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_EVENT(BTTRC_ID_AVDT_SCB, event, state)
476e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_ACTION(action)  \
477e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_ACTION(BTTRC_ID_AVDT_SCB, action)
478e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_STATE(next_state)   \
479e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_STATE(BTTRC_ID_AVDT_SCB, next_state)
480e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
481e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG0(dbg)  \
482e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG0(BTTRC_ID_AVDT_SCB, dbg)
483e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG1(dbg, p1_t,p1_v)  \
484e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG1(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v)
485e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v)  \
486e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG2(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v)
487e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)  \
488e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG3(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
489e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)  \
490e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG4(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
491e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG5(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)  \
492e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG5(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
493e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG6(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)  \
494e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG6(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
495e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
496e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT_CCB MACROS */
497e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
498e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_EVENT(event, state)   \
499e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_EVENT(BTTRC_ID_AVDT_CCB, event, state)
500e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_ACTION(action)  \
501e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_ACTION(BTTRC_ID_AVDT_CCB, action)
502e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_STATE(next_state)   \
503e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_STATE(BTTRC_ID_AVDT_CCB, next_state)
504e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
505e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG0(dbg)  \
506e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG0(BTTRC_ID_AVDT_CCB, dbg)
507e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG1(dbg, p1_t,p1_v)  \
508e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG1(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v)
509e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v)  \
510e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG2(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v)
511e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)  \
512e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG3(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
513e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)  \
514e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG4(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
515e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG5(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)  \
516e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG5(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
517e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG6(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)  \
518e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project            BTTRC_DBG6(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
519e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
520e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
521e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else /*BTTRC_INCLUDED*/
522e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
523e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
524e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* BTTRC MACROS */
525e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
526e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_EVENT(lid, event, state)
527e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_ACTION(lid, action)
528e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_STATE(lid, state)
529e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
530e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API0(lid, api)
531e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API1(lid, api, p1_t, p1_v)
532e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API2(lid, api, p1_t, p1_v, p2_t, p2_v)
533e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API3(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
534e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API4(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
535e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API5(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
536e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_API6(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
537e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
538e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
539e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG0(lid, dbg)
540e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG1(lid, dbg, p1_t,p1_v)
541e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG2(lid, dbg, p1_t,p1_v,p2_t,p2_v)
542e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG3(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
543e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG4(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
544e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG5(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
545e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_DBG6(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
546e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
547e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
548e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT MACROS */
549e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API0(api)
550e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API1(api, p1_t,p1_v)
551e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_API2(api, p1_t,p1_v,p2_t,p2_v)
552e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
553e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT_SCB MACROS */
554e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
555e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_EVENT(event, state)
556e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_ACTION(action)
557e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_STATE(next_state)
558e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
559e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG0(dbg)
560e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG1(dbg, p1_t,p1_v)
561e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v)
562e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
563e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
564e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG5(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
565e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_SCB_DBG6(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
566e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
567e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
568e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/*AVDT_CCB MACROS */
569e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
570e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_EVENT(event, state)
571e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_ACTION(action)
572e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_STATE(next_state)
573e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
574e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG0(dbg)
575e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG1(dbg, p1_t,p1_v)
576e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v)
577e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v)
578e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v)
579e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG5(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v)
580e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTTRC_AVDT_CCB_DBG6(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v,p5_t,p5_v,p6_t,p6_v)
581e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
582e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/***************************************************************************************/
583e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
584e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif /*BTTRC_INCLUDED*/
585e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
586e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
587e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if (BT_USE_TRACES == TRUE)
588e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
589e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_0(l,t,m)                           LogMsg_0((TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t)),(m))
590e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_1(l,t,m,p1)                        LogMsg_1(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1))
591e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_2(l,t,m,p1,p2)                     LogMsg_2(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1),   \
592e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p2))
593e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_3(l,t,m,p1,p2,p3)                  LogMsg_3(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1),   \
594e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p2),(UINT32)(p3))
595e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_4(l,t,m,p1,p2,p3,p4)               LogMsg_4(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1),   \
596e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p2),(UINT32)(p3),(UINT32)(p4))
597e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_5(l,t,m,p1,p2,p3,p4,p5)            LogMsg_5(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1),   \
598e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p2),(UINT32)(p3),(UINT32)(p4), \
599e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p5))
600e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_6(l,t,m,p1,p2,p3,p4,p5,p6)         LogMsg_6(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1),   \
601e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p2),(UINT32)(p3),(UINT32)(p4), \
602e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (UINT32)(p5),(UINT32)(p6))
603e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
604e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_0(l,m)                     LogMsg_0(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m))
605e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_1(l,m,p1)                  LogMsg_1(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m),(UINT32)(p1))
606e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_2(l,m,p1,p2)               LogMsg_2(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m),(UINT32)(p1),(UINT32)(p2))
607e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_3(l,m,p1,p2,p3)            LogMsg_3(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m),(UINT32)(p1),(UINT32)(p2),(UINT32)(p3))
608e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
609e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the HCI unit
610e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
611e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR0(m)                     {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m);}
612e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR1(m,p1)                  {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1);}
613e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR2(m,p1,p2)               {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1,p2);}
614e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR3(m,p1,p2,p3)            {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1,p2,p3);}
615e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
616e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
617e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
618e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
619e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING0(m)                   {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m);}
620e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING1(m,p1)                {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1);}
621e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING2(m,p1,p2)             {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1,p2);}
622e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING3(m,p1,p2,p3)          {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1,p2,p3);}
623e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
624e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
625e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
626e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
627e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT0(m)                     {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m);}
628e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT1(m,p1)                  {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m, p1);}
629e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT2(m,p1,p2)               {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m,p1,p2);}
630e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT3(m,p1,p2,p3)            {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m,p1,p2,p3);}
631e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
632e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
633e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
634e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
635e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG0(m)                     {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m);}
636e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG1(m,p1)                  {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1);}
637e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG2(m,p1,p2)               {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1,p2);}
638e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG3(m,p1,p2,p3)            {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
639e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
640e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
641e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
642e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
643e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
644e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for BTM
645e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
646e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR0(m)                     {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m);}
647e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR1(m,p1)                  {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1);}
648e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR2(m,p1,p2)               {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2);}
649e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR3(m,p1,p2,p3)            {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2,p3);}
650e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
651e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
652e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
653e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
654e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING0(m)                   {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m);}
655e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING1(m,p1)                {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1);}
656e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING2(m,p1,p2)             {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1,p2);}
657e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING3(m,p1,p2,p3)          {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1,p2,p3);}
658e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
659e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
660e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
661e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
662e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API0(m)                       {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_API, m);}
663e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API1(m,p1)                    {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_API, m, p1);}
664e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API2(m,p1,p2)                 {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_API, m,p1,p2);}
665e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API3(m,p1,p2,p3)              {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_BTM, TRACE_TYPE_API, m,p1,p2,p3);}
666e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API4(m,p1,p2,p3,p4)           {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_BTM, TRACE_TYPE_API, m,p1,p2,p3,p4);}
667e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_BTM, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
668e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_BTM, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
669e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
670e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT0(m)                     {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m);}
671e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT1(m,p1)                  {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m, p1);}
672e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT2(m,p1,p2)               {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m,p1,p2);}
673e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT3(m,p1,p2,p3)            {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m,p1,p2,p3);}
674e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
675e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
676e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
677e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
678e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG0(m)                     {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m);}
679e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG1(m,p1)                  {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1);}
680e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG2(m,p1,p2)               {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1,p2);}
681e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG3(m,p1,p2,p3)            {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
682e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
683e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
684e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
685e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
686e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
687e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the L2CAP unit
688e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
689e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR0(m)                     {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m);}
690e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR1(m,p1)                  {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1);}
691e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR2(m,p1,p2)               {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1,p2);}
692e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR3(m,p1,p2,p3)            {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
693e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
694e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
695e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
696e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
697e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING0(m)                   {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m);}
698e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING1(m,p1)                {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1);}
699e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING2(m,p1,p2)             {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1,p2);}
700e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING3(m,p1,p2,p3)          {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
701e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
702e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
703e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
704e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
705e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API0(m)                       {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m);}
706e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API1(m,p1)                    {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1);}
707e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API2(m,p1,p2)                 {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1,p2);}
708e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API3(m,p1,p2,p3)              {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1,p2,p3);}
709e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API4(m,p1,p2,p3,p4)           {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
710e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
711e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
712e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
713e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT0(m)                     {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m);}
714e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT1(m,p1)                  {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m, p1);}
715e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT2(m,p1,p2)               {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m,p1,p2);}
716e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT3(m,p1,p2,p3)            {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
717e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
718e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
719e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
720e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
721e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG0(m)                     {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m);}
722e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG1(m,p1)                  {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1);}
723e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG2(m,p1,p2)               {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1,p2);}
724e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG3(m,p1,p2,p3)            {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
725e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
726e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
727e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
728e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
729e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LLCP unit
730e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
731e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR0(m)                     {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m);}
732e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR1(m,p1)                  {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1);}
733e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR2(m,p1,p2)               {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1,p2);}
734e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR3(m,p1,p2,p3)            {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
735e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
736e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
737e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
738e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
739e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING0(m)                   {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m);}
740e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING1(m,p1)                {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1);}
741e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING2(m,p1,p2)             {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1,p2);}
742e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING3(m,p1,p2,p3)          {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
743e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
744e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
745e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
746e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
747e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API0(m)                       {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_API, m);}
748e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API1(m,p1)                    {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1);}
749e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API2(m,p1,p2)                 {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1,p2);}
750e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API3(m,p1,p2,p3)              {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1,p2,p3);}
751e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API4(m,p1,p2,p3,p4)           {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
752e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
753e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_LLCP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
754e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
755e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT0(m)                     {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m);}
756e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT1(m,p1)                  {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m, p1);}
757e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT2(m,p1,p2)               {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m,p1,p2);}
758e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT3(m,p1,p2,p3)            {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
759e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
760e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
761e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
762e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
763e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG0(m)                     {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m);}
764e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG1(m,p1)                  {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1);}
765e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG2(m,p1,p2)               {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1,p2);}
766e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG3(m,p1,p2,p3)            {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
767e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
768e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
769e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
770e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
771e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the SDP unit
772e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
773e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR0(m)                     {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m);}
774e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR1(m,p1)                  {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1);}
775e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR2(m,p1,p2)               {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1,p2);}
776e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR3(m,p1,p2,p3)            {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
777e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
778e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
779e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
780e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
781e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING0(m)                   {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m);}
782e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING1(m,p1)                {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1);}
783e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING2(m,p1,p2)             {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1,p2);}
784e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING3(m,p1,p2,p3)          {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
785e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
786e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
787e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
788e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
789e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API0(m)                       {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_API, m);}
790e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API1(m,p1)                    {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1);}
791e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API2(m,p1,p2)                 {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1,p2);}
792e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API3(m,p1,p2,p3)              {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1,p2,p3);}
793e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API4(m,p1,p2,p3,p4)           {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
794e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
795e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_SDP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
796e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
797e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT0(m)                     {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m);}
798e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT1(m,p1)                  {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m, p1);}
799e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT2(m,p1,p2)               {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m,p1,p2);}
800e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT3(m,p1,p2,p3)            {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
801e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
802e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
803e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
804e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
805e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG0(m)                     {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m);}
806e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG1(m,p1)                  {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1);}
807e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG2(m,p1,p2)               {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1,p2);}
808e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG3(m,p1,p2,p3)            {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
809e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
810e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
811e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
812e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
813e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the RFCOMM unit
814e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
815e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR0(m)                     {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m);}
816e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR1(m,p1)                  {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1);}
817e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR2(m,p1,p2)               {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1,p2);}
818e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR3(m,p1,p2,p3)            {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1,p2,p3);}
819e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
820e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
821e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
822e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
823e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING0(m)                   {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m);}
824e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING1(m,p1)                {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1);}
825e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING2(m,p1,p2)             {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1,p2);}
826e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING3(m,p1,p2,p3)          {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1,p2,p3);}
827e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
828e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
829e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
830e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
831e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API0(m)                       {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m);}
832e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API1(m,p1)                    {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1);}
833e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API2(m,p1,p2)                 {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1,p2);}
834e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API3(m,p1,p2,p3)              {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1,p2,p3);}
835e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API4(m,p1,p2,p3,p4)           {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1,p2,p3,p4);}
836e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
837e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
838e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
839e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT0(m)                     {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m);}
840e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT1(m,p1)                  {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m, p1);}
841e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT2(m,p1,p2)               {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m,p1,p2);}
842e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT3(m,p1,p2,p3)            {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m,p1,p2,p3);}
843e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
844e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
845e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
846e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
847e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG0(m)                     {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m);}
848e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG1(m,p1)                  {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1);}
849e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG2(m,p1,p2)               {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1,p2);}
850e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG3(m,p1,p2,p3)            {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
851e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
852e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
853e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
854e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
855e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for Serial Port Profile
856e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
857e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR0(m)                     {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m);}
858e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR1(m,p1)                  {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1);}
859e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR2(m,p1,p2)               {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1,p2);}
860e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR3(m,p1,p2,p3)            {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
861e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
862e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
863e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
864e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
865e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING0(m)                   {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m);}
866e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING1(m,p1)                {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1);}
867e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING2(m,p1,p2)             {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1,p2);}
868e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING3(m,p1,p2,p3)          {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
869e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
870e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
871e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
872e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
873e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT0(m)                     {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m);}
874e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT1(m,p1)                  {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m, p1);}
875e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT2(m,p1,p2)               {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m,p1,p2);}
876e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT3(m,p1,p2,p3)            {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
877e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
878e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
879e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
880e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
881e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API0(m)                       {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_API, m);}
882e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API1(m,p1)                    {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_SPP, TRACE_TYPE_API, m, p1);}
883e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API2(m,p1,p2)                 {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_SPP, TRACE_TYPE_API, m,p1,p2);}
884e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API3(m,p1,p2,p3)              {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_SPP, TRACE_TYPE_API, m,p1,p2,p3);}
885e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API4(m,p1,p2,p3,p4)           {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_SPP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
886e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_SPP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
887e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_SPP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
888e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
889e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG0(m)                     {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m);}
890e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG1(m,p1)                  {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1);}
891e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG2(m,p1,p2)               {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1,p2);}
892e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG3(m,p1,p2,p3)            {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
893e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
894e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
895e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
896e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
897e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Generic Access Profile traces */
898e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR0(m)                     {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m);}
899e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR1(m,p1)                  {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m, p1);}
900e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR2(m,p1,p2)               {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m,p1,p2);}
901e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR3(m,p1,p2,p3)            {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
902e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
903e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
904e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
905e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
906e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT0(m)                     {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m);}
907e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT1(m,p1)                  {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m, p1);}
908e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT2(m,p1,p2)               {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m,p1,p2);}
909e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT3(m,p1,p2,p3)            {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
910e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
911e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
912e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
913e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
914e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API0(m)                       {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_API, m);}
915e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API1(m,p1)                    {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_GAP, TRACE_TYPE_API, m, p1);}
916e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API2(m,p1,p2)                 {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_GAP, TRACE_TYPE_API, m,p1,p2);}
917e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API3(m,p1,p2,p3)              {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_GAP, TRACE_TYPE_API, m,p1,p2,p3);}
918e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API4(m,p1,p2,p3,p4)           {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_GAP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
919e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_GAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
920e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_GAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
921e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
922e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING0(m)                   {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m);}
923e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING1(m,p1)                {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m, p1);}
924e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING2(m,p1,p2)             {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m,p1,p2);}
925e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING3(m,p1,p2,p3)          {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
926e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
927e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
928e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
929e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
930e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
931e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for OBX
932e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
933e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR0(m)                      {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m);}
934e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR1(m,p1)                   {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1);}
935e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR2(m,p1,p2)                {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1,p2);}
936e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR3(m,p1,p2,p3)             {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1,p2,p3);}
937e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
938e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
939e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
940e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
941e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING0(m)                    {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m);}
942e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING1(m,p1)                 {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1);}
943e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING2(m,p1,p2)              {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1,p2);}
944e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING3(m,p1,p2,p3)           {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1,p2,p3);}
945e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
946e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
947e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
948e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
949e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT0(m)                      {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m);}
950e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT1(m,p1)                   {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m, p1);}
951e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT2(m,p1,p2)                {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m,p1,p2);}
952e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT3(m,p1,p2,p3)             {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m,p1,p2,p3);}
953e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
954e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
955e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
956e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
957e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG0(m)                      {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m);}
958e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG1(m,p1)                   {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1);}
959e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG2(m,p1,p2)                {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1,p2);}
960e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG3(m,p1,p2,p3)             {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
961e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
962e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
963e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
964e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
965e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API0(m)                        {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_API, m);}
966e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API1(m,p1)                     {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_OBEX, TRACE_TYPE_API, m, p1);}
967e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API2(m,p1,p2)                  {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_OBEX, TRACE_TYPE_API, m,p1,p2);}
968e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API3(m,p1,p2,p3)               {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_OBEX, TRACE_TYPE_API, m,p1,p2,p3);}
969e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API4(m,p1,p2,p3,p4)            {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_OBEX, TRACE_TYPE_API, m,p1,p2,p3,p4);}
970e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_OBEX, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
971e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_OBEX, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
972e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
973e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for OBEX application profiles
974e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
975e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR0(m)                     {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m);}
976e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR1(m,p1)                  {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1);}
977e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR2(m,p1,p2)               {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1,p2);}
978e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR3(m,p1,p2,p3)            {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
979e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
980e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
981e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
982e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
983e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING0(m)                   {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m);}
984e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING1(m,p1)                {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1);}
985e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING2(m,p1,p2)             {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1,p2);}
986e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING3(m,p1,p2,p3)          {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
987e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
988e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
989e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
990e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
991e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT0(m)                     {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m);}
992e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT1(m,p1)                  {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m, p1);}
993e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT2(m,p1,p2)               {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m,p1,p2);}
994e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT3(m,p1,p2,p3)            {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
995e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
996e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
997e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
998e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
999e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG0(m)                     {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m);}
1000e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG1(m,p1)                  {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1);}
1001e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG2(m,p1,p2)               {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1,p2);}
1002e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG3(m,p1,p2,p3)            {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1003e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1004e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1005e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1006e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1007e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API0(m)                       {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_API, m);}
1008e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API1(m,p1)                    {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_GOEP, TRACE_TYPE_API, m, p1);}
1009e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API2(m,p1,p2)                 {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_GOEP, TRACE_TYPE_API, m,p1,p2);}
1010e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API3(m,p1,p2,p3)              {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_GOEP, TRACE_TYPE_API, m,p1,p2,p3);}
1011e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API4(m,p1,p2,p3,p4)           {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_GOEP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1012e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_GOEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1013e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_GOEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1014e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1015e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the BPP profile
1016e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1017e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR0(m)                      {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m);}
1018e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR1(m,p1)                   {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1);}
1019e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR2(m,p1,p2)                {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1,p2);}
1020e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR3(m,p1,p2,p3)             {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1021e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1022e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1023e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1024e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1025e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING0(m)                    {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m);}
1026e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING1(m,p1)                 {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1);}
1027e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING2(m,p1,p2)              {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1,p2);}
1028e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING3(m,p1,p2,p3)           {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1029e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1030e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1031e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1032e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1033e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT0(m)                      {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m);}
1034e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT1(m,p1)                   {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m, p1);}
1035e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT2(m,p1,p2)                {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m,p1,p2);}
1036e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT3(m,p1,p2,p3)             {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1037e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1038e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1039e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1040e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1041e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG0(m)                      {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m);}
1042e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG1(m,p1)                   {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1);}
1043e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG2(m,p1,p2)                {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1,p2);}
1044e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG3(m,p1,p2,p3)             {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1045e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1046e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1047e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1048e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1049e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API0(m)                        {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_API, m);}
1050e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API1(m,p1)                     {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_BPP, TRACE_TYPE_API, m, p1);}
1051e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API2(m,p1,p2)                  {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_BPP, TRACE_TYPE_API, m,p1,p2);}
1052e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API3(m,p1,p2,p3)               {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_BPP, TRACE_TYPE_API, m,p1,p2,p3);}
1053e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API4(m,p1,p2,p3,p4)            {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_BPP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1054e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_BPP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1055e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_BPP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1056e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1057e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the BIP profile
1058e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1059e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR0(m)                      {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m);}
1060e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR1(m,p1)                   {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1);}
1061e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR2(m,p1,p2)                {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1,p2);}
1062e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR3(m,p1,p2,p3)             {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1063e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1064e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1065e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1066e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1067e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING0(m)                    {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m);}
1068e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING1(m,p1)                 {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1);}
1069e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING2(m,p1,p2)              {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1,p2);}
1070e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING3(m,p1,p2,p3)           {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1071e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1072e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1073e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1074e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1075e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT0(m)                      {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m);}
1076e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT1(m,p1)                   {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m, p1);}
1077e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT2(m,p1,p2)                {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m,p1,p2);}
1078e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT3(m,p1,p2,p3)             {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1079e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1080e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1081e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1082e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1083e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG0(m)                      {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m);}
1084e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG1(m,p1)                   {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1);}
1085e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG2(m,p1,p2)                {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1,p2);}
1086e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG3(m,p1,p2,p3)             {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1087e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1088e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1089e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1090e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1091e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API0(m)                        {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_API, m);}
1092e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API1(m,p1)                     {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_BIP, TRACE_TYPE_API, m, p1);}
1093e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API2(m,p1,p2)                  {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_BIP, TRACE_TYPE_API, m,p1,p2);}
1094e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API3(m,p1,p2,p3)               {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_BIP, TRACE_TYPE_API, m,p1,p2,p3);}
1095e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API4(m,p1,p2,p3,p4)            {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_BIP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1096e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_BIP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1097e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_BIP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1098e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1099e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for TCS
1100e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1101e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR0(m)                     {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m);}
1102e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR1(m,p1)                  {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1);}
1103e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR2(m,p1,p2)               {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1,p2);}
1104e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR3(m,p1,p2,p3)            {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1105e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1106e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1107e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1108e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1109e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING0(m)                   {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m);}
1110e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING1(m,p1)                {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1);}
1111e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING2(m,p1,p2)             {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1,p2);}
1112e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING3(m,p1,p2,p3)          {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1113e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1114e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1115e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1116e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1117e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT0(m)                     {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m);}
1118e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT1(m,p1)                  {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m, p1);}
1119e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT2(m,p1,p2)               {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m,p1,p2);}
1120e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT3(m,p1,p2,p3)            {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1121e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1122e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1123e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1124e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1125e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG0(m)                     {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m);}
1126e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG1(m,p1)                  {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1);}
1127e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG2(m,p1,p2)               {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1,p2);}
1128e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG3(m,p1,p2,p3)            {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1129e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1130e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1131e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1132e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1133e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API0(m)                       {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_API, m);}
1134e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API1(m,p1)                    {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_TCS, TRACE_TYPE_API, m, p1);}
1135e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API2(m,p1,p2)                 {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_TCS, TRACE_TYPE_API, m,p1,p2);}
1136e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API3(m,p1,p2,p3)              {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_TCS, TRACE_TYPE_API, m,p1,p2,p3);}
1137e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API4(m,p1,p2,p3,p4)           {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_TCS, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1138e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_TCS, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1139e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_TCS, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1140e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1141e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for ICP
1142e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1143e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR0(m)                     {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m);}
1144e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR1(m,p1)                  {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1);}
1145e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR2(m,p1,p2)               {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1,p2);}
1146e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR3(m,p1,p2,p3)            {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1147e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1148e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1149e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1150e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1151e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING0(m)                   {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m);}
1152e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING1(m,p1)                {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1);}
1153e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING2(m,p1,p2)             {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1,p2);}
1154e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING3(m,p1,p2,p3)          {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1155e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1156e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1157e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1158e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1159e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT0(m)                     {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m);}
1160e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT1(m,p1)                  {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m, p1);}
1161e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT2(m,p1,p2)               {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m,p1,p2);}
1162e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT3(m,p1,p2,p3)            {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1163e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1164e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1165e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1166e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1167e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG0(m)                     {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m);}
1168e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG1(m,p1)                  {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1);}
1169e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG2(m,p1,p2)               {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1,p2);}
1170e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG3(m,p1,p2,p3)            {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1171e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1172e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1173e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1174e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1175e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API0(m)                       {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_API, m);}
1176e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API1(m,p1)                    {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_ICP, TRACE_TYPE_API, m, p1);}
1177e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API2(m,p1,p2)                 {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_ICP, TRACE_TYPE_API, m,p1,p2);}
1178e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API3(m,p1,p2,p3)              {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_ICP, TRACE_TYPE_API, m,p1,p2,p3);}
1179e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API4(m,p1,p2,p3,p4)           {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_ICP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1180e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_ICP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1181e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_ICP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1182e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1183e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* CTP */
1184e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR0(m)                     {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m);}
1185e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR1(m,p1)                  {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1);}
1186e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR2(m,p1,p2)               {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1,p2);}
1187e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR3(m,p1,p2,p3)            {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1188e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1189e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1190e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1191e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1192e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING0(m)                   {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m);}
1193e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING1(m,p1)                {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1);}
1194e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING2(m,p1,p2)             {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1,p2);}
1195e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING3(m,p1,p2,p3)          {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1196e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1197e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1198e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1199e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1200e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT0(m)                     {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m);}
1201e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT1(m,p1)                  {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m, p1);}
1202e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT2(m,p1,p2)               {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m,p1,p2);}
1203e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT3(m,p1,p2,p3)            {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1204e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1205e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1206e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1207e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1208e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG0(m)                     {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m);}
1209e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG1(m,p1)                  {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1);}
1210e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG2(m,p1,p2)               {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1,p2);}
1211e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG3(m,p1,p2,p3)            {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1212e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1213e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1214e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1215e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1216e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1217e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HID Host */
1218e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR0(m)                     {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m);}
1219e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR1(m,p1)                  {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m, p1);}
1220e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR2(m,p1,p2)               {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2);}
1221e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR3(m,p1,p2,p3)            {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1222e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1223e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1224e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1225e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1226e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING0(m)                   {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m);}
1227e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING1(m,p1)                {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1);}
1228e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING2(m,p1,p2)             {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2);}
1229e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING3(m,p1,p2,p3)          {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1230e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1231e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1232e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1233e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1234e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API0(m)                       {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_API, m);}
1235e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API1(m,p1)                    {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_API, m, p1);}
1236e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API2(m,p1,p2)                 {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2);}
1237e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API3(m,p1,p2,p3)              {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3);}
1238e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API4(m,p1,p2,p3,p4)           {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1239e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1240e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1241e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1242e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT0(m)                     {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m);}
1243e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT1(m,p1)                  {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m, p1);}
1244e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT2(m,p1,p2)               {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2);}
1245e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT3(m,p1,p2,p3)            {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1246e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1247e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1248e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1249e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1250e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG0(m)                     {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m);}
1251e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG1(m,p1)                  {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1);}
1252e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG2(m,p1,p2)               {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2);}
1253e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG3(m,p1,p2,p3)            {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1254e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1255e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1256e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1257e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1258e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HID Device */
1259e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR0(m)                     {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m);}
1260e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR1(m,p1)                  {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m, p1);}
1261e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR2(m,p1,p2)               {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2);}
1262e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR3(m,p1,p2,p3)            {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1263e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1264e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1265e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1266e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1267e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING0(m)                   {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m);}
1268e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING1(m,p1)                {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1);}
1269e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING2(m,p1,p2)             {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2);}
1270e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING3(m,p1,p2,p3)          {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1271e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1272e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1273e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1274e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1275e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API0(m)                       {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_API, m);}
1276e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API1(m,p1)                    {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_API, m, p1);}
1277e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API2(m,p1,p2)                 {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2);}
1278e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API3(m,p1,p2,p3)              {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3);}
1279e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API4(m,p1,p2,p3,p4)           {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1280e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1281e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1282e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1283e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT0(m)                     {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m);}
1284e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT1(m,p1)                  {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m, p1);}
1285e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT2(m,p1,p2)               {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2);}
1286e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT3(m,p1,p2,p3)            {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1287e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1288e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1289e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1290e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1291e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG0(m)                     {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m);}
1292e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG1(m,p1)                  {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1);}
1293e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG2(m,p1,p2)               {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2);}
1294e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG3(m,p1,p2,p3)            {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1295e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1296e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1297e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1298e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1299e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for headset profile */
1300e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR0(pcb,m)                     {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m);}
1301e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR1(pcb,m,p1)                  {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m, p1);}
1302e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR2(pcb,m,p1,p2)               {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m,p1,p2);}
1303e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR3(pcb,m,p1,p2,p3)            {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1304e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR4(pcb,m,p1,p2,p3,p4)         {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1305e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR5(pcb,m,p1,p2,p3,p4,p5)      {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1306e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR6(pcb,m,p1,p2,p3,p4,p5,p6)   {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1307e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1308e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING0(pcb,m)                   {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m);}
1309e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING1(pcb,m,p1)                {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1);}
1310e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING2(pcb,m,p1,p2)             {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1,p2);}
1311e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING3(pcb,m,p1,p2,p3)          {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1312e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING4(pcb,m,p1,p2,p3,p4)       {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1313e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING5(pcb,m,p1,p2,p3,p4,p5)    {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1314e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING6(pcb,m,p1,p2,p3,p4,p5,p6) {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1315e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1316e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API0(pcb,m)                       {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_API, m);}
1317e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API1(pcb,m,p1)                    {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_HSP2, TRACE_TYPE_API, m, p1);}
1318e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API2(pcb,m,p1,p2)                 {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_HSP2, TRACE_TYPE_API, m,p1,p2);}
1319e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API3(pcb,m,p1,p2,p3)              {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_HSP2, TRACE_TYPE_API, m,p1,p2,p3);}
1320e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API4(pcb,m,p1,p2,p3,p4)           {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_HSP2, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1321e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API5(pcb,m,p1,p2,p3,p4,p5)        {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_HSP2, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1322e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API6(pcb,m,p1,p2,p3,p4,p5,p6)     {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_HSP2, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1323e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1324e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT0(pcb,m)                     {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m);}
1325e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT1(pcb,m,p1)                  {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m, p1);}
1326e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT2(pcb,m,p1,p2)               {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m,p1,p2);}
1327e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT3(pcb,m,p1,p2,p3)            {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1328e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT4(pcb,m,p1,p2,p3,p4)         {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1329e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT5(pcb,m,p1,p2,p3,p4,p5)      {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1330e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT6(pcb,m,p1,p2,p3,p4,p5,p6)   {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1331e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1332e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG0(pcb,m)                     {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m);}
1333e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG1(pcb,m,p1)                  {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1);}
1334e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG2(pcb,m,p1,p2)               {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1,p2);}
1335e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG3(pcb,m,p1,p2,p3)            {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1336e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG4(pcb,m,p1,p2,p3,p4)         {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1337e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG5(pcb,m,p1,p2,p3,p4,p5)      {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1338e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG6(pcb,m,p1,p2,p3,p4,p5,p6)   {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1339e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1340e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFC unit
1341e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1342e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR0(m)                     {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m);}
1343e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR1(m,p1)                  {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1);}
1344e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR2(m,p1,p2)               {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1,p2);}
1345e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR3(m,p1,p2,p3)            {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1346e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1347e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1348e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1349e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1350e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING0(m)                   {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m);}
1351e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING1(m,p1)                {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1);}
1352e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING2(m,p1,p2)             {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1,p2);}
1353e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING3(m,p1,p2,p3)          {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1354e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1355e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1356e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1357e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1358e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API0(m)                       {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_API, m);}
1359e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API1(m,p1)                    {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1);}
1360e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API2(m,p1,p2)                 {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1,p2);}
1361e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API3(m,p1,p2,p3)              {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1,p2,p3);}
1362e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API4(m,p1,p2,p3,p4)           {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1363e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1364e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_NFC, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1365e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1366e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT0(m)                     {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m);}
1367e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT1(m,p1)                  {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m, p1);}
1368e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT2(m,p1,p2)               {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m,p1,p2);}
1369e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT3(m,p1,p2,p3)            {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1370e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1371e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1372e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1373e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1374e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG0(m)                     {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m);}
1375e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG1(m,p1)                  {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1);}
1376e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG2(m,p1,p2)               {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1,p2);}
1377e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG3(m,p1,p2,p3)            {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1378e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1379e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1380e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1381e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1382e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR0(m)                     {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m);}
1383e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR1(m,p1)                  {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1);}
1384e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR2(m,p1,p2)               {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2);}
1385e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR3(m,p1,p2,p3)            {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1386e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1387e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1388e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1389e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1390e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING0(m)                   {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m);}
1391e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING1(m,p1)                {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1);}
1392e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING2(m,p1,p2)             {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2);}
1393e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING3(m,p1,p2,p3)          {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1394e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1395e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1396e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1397e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1398e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API0(m)                       {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_API, m);}
1399e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API1(m,p1)                    {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1);}
1400e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API2(m,p1,p2)                 {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2);}
1401e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API3(m,p1,p2,p3)              {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3);}
1402e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API4(m,p1,p2,p3,p4)           {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1403e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1404e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1405e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1406e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT0(m)                     {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m);}
1407e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT1(m,p1)                  {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m, p1);}
1408e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT2(m,p1,p2)               {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2);}
1409e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT3(m,p1,p2,p3)            {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1410e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1411e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1412e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1413e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1414e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG0(m)                     {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m);}
1415e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG1(m,p1)                  {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1);}
1416e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG2(m,p1,p2)               {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2);}
1417e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG3(m,p1,p2,p3)            {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1418e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1419e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1420e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (ncit_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1421e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1422e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR0(m)                     {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m);}
1423e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR1(m,p1)                  {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1);}
1424e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR2(m,p1,p2)               {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1,p2);}
1425e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR3(m,p1,p2,p3)            {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1426e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1427e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1428e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1429e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1430e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING0(m)                   {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m);}
1431e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING1(m,p1)                {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1);}
1432e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING2(m,p1,p2)             {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1,p2);}
1433e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING3(m,p1,p2,p3)          {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1434e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1435e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1436e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1437e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1438e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API0(m)                       {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_API, m);}
1439e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API1(m,p1)                    {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1);}
1440e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API2(m,p1,p2)                 {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1,p2);}
1441e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API3(m,p1,p2,p3)              {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1,p2,p3);}
1442e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API4(m,p1,p2,p3,p4)           {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1443e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1444e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_RW, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1445e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1446e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT0(m)                     {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m);}
1447e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT1(m,p1)                  {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m, p1);}
1448e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT2(m,p1,p2)               {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m,p1,p2);}
1449e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT3(m,p1,p2,p3)            {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1450e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1451e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1452e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1453e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1454e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG0(m)                     {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m);}
1455e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG1(m,p1)                  {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1);}
1456e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG2(m,p1,p2)               {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1,p2);}
1457e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG3(m,p1,p2,p3)            {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1458e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1459e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1460e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1461e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1462e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR0(m)                     {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m);}
1463e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR1(m,p1)                  {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1);}
1464e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR2(m,p1,p2)               {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1,p2);}
1465e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR3(m,p1,p2,p3)            {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1466e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1467e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1468e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1469e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1470e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING0(m)                   {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m);}
1471e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING1(m,p1)                {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1);}
1472e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING2(m,p1,p2)             {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1,p2);}
1473e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING3(m,p1,p2,p3)          {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1474e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1475e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1476e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1477e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1478e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API0(m)                       {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_API, m);}
1479e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API1(m,p1)                    {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1);}
1480e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API2(m,p1,p2)                 {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1,p2);}
1481e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API3(m,p1,p2,p3)              {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1,p2,p3);}
1482e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API4(m,p1,p2,p3,p4)           {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1483e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1484e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_CE, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1485e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1486e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT0(m)                     {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m);}
1487e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT1(m,p1)                  {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m, p1);}
1488e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT2(m,p1,p2)               {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m,p1,p2);}
1489e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT3(m,p1,p2,p3)            {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1490e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1491e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1492e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1493e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1494e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG0(m)                     {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m);}
1495e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG1(m,p1)                  {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1);}
1496e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG2(m,p1,p2)               {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1,p2);}
1497e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG3(m,p1,p2,p3)            {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1498e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1499e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1500e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1501e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1502e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR0(m)                     {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m);}
1503e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR1(m,p1)                  {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1);}
1504e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR2(m,p1,p2)               {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1,p2);}
1505e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR3(m,p1,p2,p3)            {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1506e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1507e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1508e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1509e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1510e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING0(m)                   {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m);}
1511e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING1(m,p1)                {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1);}
1512e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING2(m,p1,p2)             {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1,p2);}
1513e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING3(m,p1,p2,p3)          {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1514e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1515e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1516e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1517e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1518e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API0(m)                       {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_API, m);}
1519e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API1(m,p1)                    {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1);}
1520e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API2(m,p1,p2)                 {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1,p2);}
1521e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API3(m,p1,p2,p3)              {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1,p2,p3);}
1522e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API4(m,p1,p2,p3,p4)           {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1523e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1524e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_NDEF, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1525e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1526e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT0(m)                     {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m);}
1527e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT1(m,p1)                  {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m, p1);}
1528e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT2(m,p1,p2)               {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m,p1,p2);}
1529e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT3(m,p1,p2,p3)            {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1530e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1531e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1532e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1533e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1534e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG0(m)                     {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m);}
1535e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG1(m,p1)                  {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1);}
1536e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG2(m,p1,p2)               {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1,p2);}
1537e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG3(m,p1,p2,p3)            {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1538e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1539e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1540e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1541e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1542e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA unit
1543e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1544e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR0(m)                     {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m);}
1545e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR1(m,p1)                  {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1);}
1546e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR2(m,p1,p2)               {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1,p2);}
1547e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR3(m,p1,p2,p3)            {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1548e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1549e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1550e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_NFA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1551e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1552e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING0(m)                   {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m);}
1553e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING1(m,p1)                {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1);}
1554e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING2(m,p1,p2)             {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1,p2);}
1555e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING3(m,p1,p2,p3)          {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1556e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1557e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1558e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_NFA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1559e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1560e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API0(m)                       {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NFA, TRACE_TYPE_API, m);}
1561e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API1(m,p1)                    {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1);}
1562e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API2(m,p1,p2)                 {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1,p2);}
1563e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API3(m,p1,p2,p3)              {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1,p2,p3);}
1564e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API4(m,p1,p2,p3,p4)           {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1565e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1566e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_NFA, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1567e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1568e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT0(m)                     {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m);}
1569e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT1(m,p1)                  {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m, p1);}
1570e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT2(m,p1,p2)               {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m,p1,p2);}
1571e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT3(m,p1,p2,p3)            {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1572e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1573e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1574e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_NFA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1575e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1576e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG0(m)                     {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m);}
1577e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG1(m,p1)                  {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1);}
1578e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG2(m,p1,p2)               {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1,p2);}
1579e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG3(m,p1,p2,p3)            {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1580e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1581e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1582e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_sys_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_NFA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1583e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1584e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA P2P unit
1585e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1586e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR0(m)                     {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m);}
1587e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR1(m,p1)                  {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1);}
1588e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR2(m,p1,p2)               {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1,p2);}
1589e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR3(m,p1,p2,p3)            {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1590e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1591e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1592e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_P2P, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1593e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1594e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING0(m)                   {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m);}
1595e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING1(m,p1)                {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1);}
1596e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING2(m,p1,p2)             {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1,p2);}
1597e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING3(m,p1,p2,p3)          {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1598e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1599e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1600e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_P2P, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1601e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1602e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API0(m)                       {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_P2P, TRACE_TYPE_API, m);}
1603e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API1(m,p1)                    {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1);}
1604e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API2(m,p1,p2)                 {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1,p2);}
1605e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API3(m,p1,p2,p3)              {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1,p2,p3);}
1606e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API4(m,p1,p2,p3,p4)           {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1607e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1608e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_P2P, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1609e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1610e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT0(m)                     {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m);}
1611e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT1(m,p1)                  {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m, p1);}
1612e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT2(m,p1,p2)               {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m,p1,p2);}
1613e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT3(m,p1,p2,p3)            {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1614e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1615e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1616e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_P2P, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1617e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1618e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG0(m)                     {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m);}
1619e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG1(m,p1)                  {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1);}
1620e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG2(m,p1,p2)               {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1,p2);}
1621e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG3(m,p1,p2,p3)            {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1622e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1623e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1624e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_p2p_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_P2P, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1625e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1626e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA CHO unit
1627e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1628e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR0(m)                     {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m);}
1629e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR1(m,p1)                  {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1);}
1630e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR2(m,p1,p2)               {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1,p2);}
1631e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR3(m,p1,p2,p3)            {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1632e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1633e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1634e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_CHO, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1635e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1636e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING0(m)                   {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m);}
1637e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING1(m,p1)                {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1);}
1638e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING2(m,p1,p2)             {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1,p2);}
1639e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING3(m,p1,p2,p3)          {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1640e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1641e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1642e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_CHO, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1643e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1644e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API0(m)                       {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_CHO, TRACE_TYPE_API, m);}
1645e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API1(m,p1)                    {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1);}
1646e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API2(m,p1,p2)                 {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1,p2);}
1647e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API3(m,p1,p2,p3)              {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1,p2,p3);}
1648e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API4(m,p1,p2,p3,p4)           {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1649e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1650e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_CHO, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1651e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1652e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT0(m)                     {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m);}
1653e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT1(m,p1)                  {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m, p1);}
1654e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT2(m,p1,p2)               {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m,p1,p2);}
1655e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT3(m,p1,p2,p3)            {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1656e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1657e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1658e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_CHO, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1659e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1660e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG0(m)                     {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m);}
1661e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG1(m,p1)                  {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1);}
1662e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG2(m,p1,p2)               {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1,p2);}
1663e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG3(m,p1,p2,p3)            {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1664e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1665e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1666e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_cho_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_CHO, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1667e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1668e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA SNEP unit
1669e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
1670e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR0(m)                     {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m);}
1671e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR1(m,p1)                  {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1);}
1672e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR2(m,p1,p2)               {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1,p2);}
1673e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR3(m,p1,p2,p3)            {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1674e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1675e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1676e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_SNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1677e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1678e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING0(m)                   {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m);}
1679e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING1(m,p1)                {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1);}
1680e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING2(m,p1,p2)             {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1,p2);}
1681e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING3(m,p1,p2,p3)          {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1682e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1683e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1684e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_SNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1685e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1686e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API0(m)                       {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SNEP, TRACE_TYPE_API, m);}
1687e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API1(m,p1)                    {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1);}
1688e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API2(m,p1,p2)                 {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1,p2);}
1689e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API3(m,p1,p2,p3)              {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1,p2,p3);}
1690e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API4(m,p1,p2,p3,p4)           {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1691e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1692e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_SNEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1693e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1694e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT0(m)                     {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m);}
1695e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT1(m,p1)                  {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m, p1);}
1696e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT2(m,p1,p2)               {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m,p1,p2);}
1697e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT3(m,p1,p2,p3)            {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1698e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1699e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1700e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_SNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1701e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1702e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG0(m)                     {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m);}
1703e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG1(m,p1)                  {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1);}
1704e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG2(m,p1,p2)               {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1,p2);}
1705e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG3(m,p1,p2,p3)            {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1706e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1707e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1708e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (nfa_snep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_SNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1709e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1710e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_0(m)
1711e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_1(m,p1)
1712e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_2(m,p1,p2)
1713e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_3(m,p1,p2,p3)
1714e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_4(m,p1,p2,p3,p4)
1715e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_5(m,p1,p2,p3,p4,p5)
1716e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_TRACE_6(m,p1,p2,p3,p4,p5,p6)
1717e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1718e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_0(m)                           BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m)
1719e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_1(m,p1)                        BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1)
1720e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_2(m,p1,p2)                     BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2)
1721e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_3(m,p1,p2,p3)                  BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3)
1722e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_4(m,p1,p2,p3,p4)               BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4)
1723e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_5(m,p1,p2,p3,p4,p5)            BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5)
1724e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_DEBUG_6(m,p1,p2,p3,p4,p5,p6)         BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6)
1725e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1726e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_0(m)                         BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m)
1727e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_1(m,p1)                      BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1)
1728e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_2(m,p1,p2)                   BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2)
1729e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_3(m,p1,p2,p3)                BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3)
1730e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_4(m,p1,p2,p3,p4)             BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4)
1731e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_5(m,p1,p2,p3,p4,p5)          BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5)
1732e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_WARNING_6(m,p1,p2,p3,p4,p5,p6)       BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6)
1733e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1734e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_0(m)                           BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m)
1735e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_1(m,p1)                        BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1)
1736e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_2(m,p1,p2)                     BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2)
1737e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_3(m,p1,p2,p3)                  BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3)
1738e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_4(m,p1,p2,p3,p4)               BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4)
1739e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_5(m,p1,p2,p3,p4,p5)            BT_TRACE_5(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5)
1740e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MMI_ERROR_6(m,p1,p2,p3,p4,p5,p6)         BT_TRACE_6(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6)
1741e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1742e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TAK_TRACE_0(m)                            MMI_Echo(m)
1743e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1744e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* hid mouse module traces */
1745e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1746e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_0(m)                         MMI_Echo(m)
1747e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_1(m,p1)                      MMI_Echo(m,p1)
1748e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_2(m,p1,p2)                   MMI_Echo(m,p1,p2)
1749e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_3(m,p1,p2,p3)                MMI_Echo(m,p1,p2,p3)
1750e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_4(m,p1,p2,p3,p4)             MMI_Echo(m,p1,p2,p3,p4)
1751e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_5(m,p1,p2,p3,p4,p5)          MMI_Echo(m,p1,p2,p3,p4,p5)
1752e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_6(m,p1,p2,p3,p4,p5,p6)       MMI_Echo(m,p1,p2,p3,p4,p5,p6)
1753e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1754e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_0(m)                         MMI_Echo(m)
1755e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_1(m,p1)                      MMI_Echo(m,p1)
1756e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_2(m,p1,p2)                   MMI_Echo(m,p1,p2)
1757e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_3(m,p1,p2,p3)                MMI_Echo(m,p1,p2,p3)
1758e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_4(m,p1,p2,p3,p4)             MMI_Echo(m,p1,p2,p3,p4)
1759e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_5(m,p1,p2,p3,p4,p5)          MMI_Echo(m,p1,p2,p3,p4,p5)
1760e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_6(m,p1,p2,p3,p4,p5,p6)       MMI_Echo(m,p1,p2,p3,p4,p5,p6)
1761e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1762e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_0(m)                         MMI_Echo(m)
1763e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_1(m,p1)                      MMI_Echo(m,p1)
1764e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_2(m,p1,p2)                   MMI_Echo(m,p1,p2)
1765e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_3(m,p1,p2,p3)                MMI_Echo(m,p1,p2,p3)
1766e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_4(m,p1,p2,p3,p4)             MMI_Echo(m,p1,p2,p3,p4)
1767e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_5(m,p1,p2,p3,p4,p5)          MMI_Echo(m,p1,p2,p3,p4,p5)
1768e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_6(m,p1,p2,p3,p4,p5,p6)       MMI_Echo(m,p1,p2,p3,p4,p5,p6)
1769e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1770e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for DUN */
1771e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1772e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR0(m)                     {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m);}
1773e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR1(m,p1)                  {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m, p1);}
1774e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR2(m,p1,p2)               {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m,p1,p2);}
1775e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR3(m,p1,p2,p3)            {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1776e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1777e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1778e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1779e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1780e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING0(m)                   {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m);}
1781e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING1(m,p1)                {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1);}
1782e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING2(m,p1,p2)             {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1,p2);}
1783e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING3(m,p1,p2,p3)          {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1784e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1785e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1786e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1787e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1788e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API0(m)                       {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_API, m);}
1789e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API1(m,p1)                    {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_DUN, TRACE_TYPE_API, m, p1);}
1790e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API2(m,p1,p2)                 {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_DUN, TRACE_TYPE_API, m,p1,p2);}
1791e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API3(m,p1,p2,p3)              {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_DUN, TRACE_TYPE_API, m,p1,p2,p3);}
1792e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API4(m,p1,p2,p3,p4)           {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_DUN, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1793e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_DUN, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1794e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_DUN, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1795e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1796e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT0(m)                     {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m);}
1797e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT1(m,p1)                  {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m, p1);}
1798e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT2(m,p1,p2)               {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m,p1,p2);}
1799e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT3(m,p1,p2,p3)            {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1800e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1801e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1802e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1803e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1804e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG0(m)                     {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m);}
1805e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG1(m,p1)                  {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1);}
1806e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG2(m,p1,p2)               {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1,p2);}
1807e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG3(m,p1,p2,p3)            {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1808e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1809e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1810e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1811e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1812e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for hardcopy cable replacement profile */
1813e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1814e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR0(m)                     {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m);}
1815e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR1(m,p1)                  {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m, p1);}
1816e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR2(m,p1,p2)               {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2);}
1817e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR3(m,p1,p2,p3)            {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1818e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1819e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1820e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1821e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1822e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING0(m)                   {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m);}
1823e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING1(m,p1)                {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1);}
1824e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING2(m,p1,p2)             {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2);}
1825e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING3(m,p1,p2,p3)          {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1826e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1827e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1828e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1829e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1830e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API0(m)                       {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_API, m);}
1831e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API1(m,p1)                    {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_API, m, p1);}
1832e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API2(m,p1,p2)                 {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2);}
1833e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API3(m,p1,p2,p3)              {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3);}
1834e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API4(m,p1,p2,p3,p4)           {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1835e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1836e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1837e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1838e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT0(m)                     {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m);}
1839e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT1(m,p1)                  {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m, p1);}
1840e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT2(m,p1,p2)               {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2);}
1841e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT3(m,p1,p2,p3)            {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1842e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1843e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1844e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1845e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1846e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG0(m)                     {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m);}
1847e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG1(m,p1)                  {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1);}
1848e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG2(m,p1,p2)               {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2);}
1849e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG3(m,p1,p2,p3)            {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1850e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1851e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1852e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1853e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1854e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for multi-client server hardcopy cable replacement profile */
1855e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1856e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR0(m)                     {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m);}
1857e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR1(m,p1)                  {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m, p1);}
1858e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR2(m,p1,p2)               {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2);}
1859e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR3(m,p1,p2,p3)            {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1860e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1861e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1862e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1863e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1864e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING0(m)                   {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m);}
1865e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING1(m,p1)                {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1);}
1866e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING2(m,p1,p2)             {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2);}
1867e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING3(m,p1,p2,p3)          {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1868e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1869e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1870e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1871e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1872e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API0(m)                       {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_API, m);}
1873e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API1(m,p1)                    {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_API, m, p1);}
1874e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API2(m,p1,p2)                 {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2);}
1875e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API3(m,p1,p2,p3)              {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3);}
1876e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API4(m,p1,p2,p3,p4)           {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1877e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1878e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1879e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1880e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT0(m)                     {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m);}
1881e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT1(m,p1)                  {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m, p1);}
1882e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT2(m,p1,p2)               {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2);}
1883e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT3(m,p1,p2,p3)            {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1884e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1885e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
1886e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
1887e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1888e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG0(m)                     {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m);}
1889e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG1(m,p1)                  {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1);}
1890e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG2(m,p1,p2)               {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2);}
1891e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG3(m,p1,p2,p3)            {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
1892e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
1893e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
1894e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
1895e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1896e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for RPC */
1897e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1898e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR0(m)                      {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, (m));}
1899e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR1(m,p1)                   {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1900e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
1901e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR2(m,p1,p2)                {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1902e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
1903e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR3(m,p1,p2,p3)             {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1904e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
1905e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1906e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
1907e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1908e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
1909e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (rpc_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_ERROR, \
1910e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
1911e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1912e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING0(m)                    {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, (m));}
1913e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING1(m,p1)                 {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1914e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
1915e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING2(m,p1,p2)              {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1916e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
1917e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING3(m,p1,p2,p3)           {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1918e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
1919e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1920e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
1921e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1922e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
1923e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (rpc_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_WARNING, \
1924e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
1925e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1926e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API0(m)                        {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, (m));}
1927e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API1(m,p1)                     {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1928e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
1929e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API2(m,p1,p2)                  {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1930e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
1931e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API3(m,p1,p2,p3)               {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1932e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
1933e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API4(m,p1,p2,p3,p4)            {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1934e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
1935e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1936e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
1937e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (rpc_trace_level >= BT_TRACE_LEVEL_API) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_API, \
1938e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
1939e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1940e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT0(m)                      {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, (m));}
1941e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT1(m,p1)                   {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1942e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
1943e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT2(m,p1,p2)                {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1944e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
1945e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT3(m,p1,p2,p3)             {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1946e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
1947e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1948e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
1949e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1950e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
1951e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (rpc_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_EVENT, \
1952e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
1953e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1954e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG0(m)                      {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, (m));}
1955e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG1(m,p1)                   {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1956e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
1957e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG2(m,p1,p2)                {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1958e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
1959e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG3(m,p1,p2,p3)             {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1960e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
1961e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1962e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
1963e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1964e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
1965e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (rpc_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_RPC | TRACE_TYPE_DEBUG, \
1966e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
1967e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1968e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for BNEP */
1969e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1970e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR0(m)                     {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m);}
1971e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR1(m,p1)                  {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m, p1);}
1972e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR2(m,p1,p2)               {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m,p1,p2);}
1973e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR3(m,p1,p2,p3)            {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
1974e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
1975e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
1976e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
1977e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1978e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING0(m)                   {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m);}
1979e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING1(m,p1)                {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1);}
1980e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING2(m,p1,p2)             {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1,p2);}
1981e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING3(m,p1,p2,p3)          {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
1982e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
1983e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
1984e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
1985e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1986e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API0(m)                       {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_API, m);}
1987e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API1(m,p1)                    {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_BNEP, TRACE_TYPE_API, m, p1);}
1988e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API2(m,p1,p2)                 {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_BNEP, TRACE_TYPE_API, m,p1,p2);}
1989e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API3(m,p1,p2,p3)              {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_BNEP, TRACE_TYPE_API, m,p1,p2,p3);}
1990e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API4(m,p1,p2,p3,p4)           {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_BNEP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
1991e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_BNEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
1992e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_BNEP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
1993e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
1994e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT0(m)                     {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m);}
1995e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT1(m,p1)                  {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m, p1);}
1996e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT2(m,p1,p2)               {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m,p1,p2);}
1997e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT3(m,p1,p2,p3)            {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
1998e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
1999e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2000e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2001e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2002e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG0(m)                     {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m);}
2003e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG1(m,p1)                  {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1);}
2004e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG2(m,p1,p2)               {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1,p2);}
2005e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG3(m,p1,p2,p3)            {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2006e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2007e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2008e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2009e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2010e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for PAN */
2011e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2012e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR0(m)                     {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m);}
2013e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR1(m,p1)                  {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m, p1);}
2014e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR2(m,p1,p2)               {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m,p1,p2);}
2015e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR3(m,p1,p2,p3)            {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2016e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2017e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2018e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2019e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2020e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING0(m)                   {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m);}
2021e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING1(m,p1)                {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1);}
2022e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING2(m,p1,p2)             {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1,p2);}
2023e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING3(m,p1,p2,p3)          {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2024e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2025e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2026e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2027e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2028e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API0(m)                       {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_API, m);}
2029e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API1(m,p1)                    {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_PAN, TRACE_TYPE_API, m, p1);}
2030e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API2(m,p1,p2)                 {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_PAN, TRACE_TYPE_API, m,p1,p2);}
2031e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API3(m,p1,p2,p3)              {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_PAN, TRACE_TYPE_API, m,p1,p2,p3);}
2032e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API4(m,p1,p2,p3,p4)           {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_PAN, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2033e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_PAN, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2034e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_PAN, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2035e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2036e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT0(m)                     {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m);}
2037e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT1(m,p1)                  {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m, p1);}
2038e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT2(m,p1,p2)               {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m,p1,p2);}
2039e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT3(m,p1,p2,p3)            {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2040e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2041e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2042e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2043e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2044e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG0(m)                     {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m);}
2045e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG1(m,p1)                  {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1);}
2046e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG2(m,p1,p2)               {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1,p2);}
2047e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG3(m,p1,p2,p3)            {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2048e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2049e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2050e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2051e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2052e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for SIM */
2053e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2054e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR0(m)                     {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m);}
2055e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR1(m,p1)                  {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m, p1);}
2056e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR2(m,p1,p2)               {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m,p1,p2);}
2057e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR3(m,p1,p2,p3)            {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2058e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2059e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2060e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2061e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2062e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING0(m)                   {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m);}
2063e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING1(m,p1)                {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1);}
2064e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING2(m,p1,p2)             {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1,p2);}
2065e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING3(m,p1,p2,p3)          {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2066e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2067e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2068e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2069e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2070e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API0(m)                       {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_API, m);}
2071e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API1(m,p1)                    {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_SAP, TRACE_TYPE_API, m, p1);}
2072e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API2(m,p1,p2)                 {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_SAP, TRACE_TYPE_API, m,p1,p2);}
2073e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API3(m,p1,p2,p3)              {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_SAP, TRACE_TYPE_API, m,p1,p2,p3);}
2074e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API4(m,p1,p2,p3,p4)           {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_SAP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2075e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_SAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2076e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_SAP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2077e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2078e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT0(m)                     {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m);}
2079e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT1(m,p1)                  {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m, p1);}
2080e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT2(m,p1,p2)               {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m,p1,p2);}
2081e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT3(m,p1,p2,p3)            {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2082e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2083e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2084e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2085e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2086e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG0(m)                     {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m);}
2087e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG1(m,p1)                  {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1);}
2088e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG2(m,p1,p2)               {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1,p2);}
2089e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG3(m,p1,p2,p3)            {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2090e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2091e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2092e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2093e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2094e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for OPP profile
2095e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2096e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR0(m)                      {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m);}
2097e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR1(m,p1)                   {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1);}
2098e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR2(m,p1,p2)                {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1,p2);}
2099e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR3(m,p1,p2,p3)             {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2100e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2101e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2102e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2103e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2104e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING0(m)                    {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m);}
2105e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING1(m,p1)                 {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1);}
2106e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING2(m,p1,p2)              {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1,p2);}
2107e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING3(m,p1,p2,p3)           {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2108e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2109e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2110e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2111e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2112e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT0(m)                      {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m);}
2113e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT1(m,p1)                   {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m, p1);}
2114e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT2(m,p1,p2)                {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m,p1,p2);}
2115e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT3(m,p1,p2,p3)             {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2116e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2117e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2118e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2119e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2120e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG0(m)                      {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m);}
2121e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG1(m,p1)                   {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1);}
2122e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG2(m,p1,p2)                {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1,p2);}
2123e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG3(m,p1,p2,p3)             {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2124e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2125e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2126e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2127e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2128e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for FTP profile
2129e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2130e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR0(m)                      {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m);}
2131e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR1(m,p1)                   {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1);}
2132e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR2(m,p1,p2)                {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1,p2);}
2133e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR3(m,p1,p2,p3)             {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2134e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2135e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2136e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2137e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2138e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING0(m)                    {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m);}
2139e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING1(m,p1)                 {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1);}
2140e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING2(m,p1,p2)              {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1,p2);}
2141e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING3(m,p1,p2,p3)           {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2142e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2143e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2144e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2145e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2146e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT0(m)                      {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m);}
2147e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT1(m,p1)                   {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m, p1);}
2148e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT2(m,p1,p2)                {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m,p1,p2);}
2149e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT3(m,p1,p2,p3)             {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2150e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2151e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2152e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2153e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2154e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG0(m)                      {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m);}
2155e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG1(m,p1)                   {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1);}
2156e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG2(m,p1,p2)                {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1,p2);}
2157e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG3(m,p1,p2,p3)             {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2158e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2159e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2160e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2161e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2162e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the A2DP profile
2163e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2164e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR0(m)                      {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m);}
2165e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR1(m,p1)                   {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1);}
2166e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR2(m,p1,p2)                {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1,p2);}
2167e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR3(m,p1,p2,p3)             {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1,p2,p3);}
2168e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1,p2,p3,p4);}
2169e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5);}
2170e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5,p6);}
2171e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2172e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING0(m)                    {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m);}
2173e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING1(m,p1)                 {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1);}
2174e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING2(m,p1,p2)              {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1,p2);}
2175e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING3(m,p1,p2,p3)           {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1,p2,p3);}
2176e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1,p2,p3,p4);}
2177e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5);}
2178e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5,p6);}
2179e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2180e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT0(m)                      {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m);}
2181e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT1(m,p1)                   {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m, p1);}
2182e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT2(m,p1,p2)                {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m,p1,p2);}
2183e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT3(m,p1,p2,p3)             {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m,p1,p2,p3);}
2184e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m,p1,p2,p3,p4);}
2185e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5);}
2186e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5,p6);}
2187e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2188e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG0(m)                      {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m);}
2189e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG1(m,p1)                   {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1);}
2190e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG2(m,p1,p2)                {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1,p2);}
2191e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG3(m,p1,p2,p3)             {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1,p2,p3);}
2192e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4);}
2193e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5);}
2194e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5,p6);}
2195e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2196e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API0(m)                        {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_API,m);}
2197e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API1(m,p1)                     {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_A2D, TRACE_TYPE_API,m, p1);}
2198e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API2(m,p1,p2)                  {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_A2D, TRACE_TYPE_API,m,p1,p2);}
2199e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API3(m,p1,p2,p3)               {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_A2D, TRACE_TYPE_API,m,p1,p2,p3);}
2200e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API4(m,p1,p2,p3,p4)            {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_A2D, TRACE_TYPE_API,m,p1,p2,p3,p4);}
2201e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_A2D, TRACE_TYPE_API,m,p1,p2,p3,p4,p5);}
2202e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_A2D, TRACE_TYPE_API,m,p1,p2,p3,p4,p5,p6);}
2203e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2204e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the VDP profile
2205e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2206e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR0(m)                      {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m);}
2207e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR1(m,p1)                   {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1);}
2208e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR2(m,p1,p2)                {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2);}
2209e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR3(m,p1,p2,p3)             {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3);}
2210e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4);}
2211e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5);}
2212e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5,p6);}
2213e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2214e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING0(m)                    {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m);}
2215e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING1(m,p1)                 {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1);}
2216e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING2(m,p1,p2)              {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2);}
2217e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING3(m,p1,p2,p3)           {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3);}
2218e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4);}
2219e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5);}
2220e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5,p6);}
2221e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2222e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT0(m)                      {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m);}
2223e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT1(m,p1)                   {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m, p1);}
2224e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT2(m,p1,p2)                {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2);}
2225e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT3(m,p1,p2,p3)             {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3);}
2226e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4);}
2227e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5);}
2228e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5,p6);}
2229e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2230e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG0(m)                      {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m);}
2231e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG1(m,p1)                   {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1);}
2232e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG2(m,p1,p2)                {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2);}
2233e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG3(m,p1,p2,p3)             {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3);}
2234e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4);}
2235e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5);}
2236e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5,p6);}
2237e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2238e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API0(m)                        {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API,m);}
2239e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API1(m,p1)                     {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_API,m, p1);}
2240e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API2(m,p1,p2)                  {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2);}
2241e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API3(m,p1,p2,p3)               {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3);}
2242e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API4(m,p1,p2,p3,p4)            {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4);}
2243e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4,p5);}
2244e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4,p5,p6);}
2245e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2246e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2247e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LM unit
2248e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2249e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR0(m)                     {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m);}
2250e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR1(m,p1)                  {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1);}
2251e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR2(m,p1,p2)               {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1,p2);}
2252e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR3(m,p1,p2,p3)            {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2253e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2254e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2255e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2256e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2257e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING0(m)                   {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m);}
2258e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING1(m,p1)                {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1);}
2259e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING2(m,p1,p2)             {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1,p2);}
2260e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING3(m,p1,p2,p3)          {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2261e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2262e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2263e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2264e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2265e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT0(m)                     {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m);}
2266e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT1(m,p1)                  {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m, p1);}
2267e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT2(m,p1,p2)               {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m,p1,p2);}
2268e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT3(m,p1,p2,p3)            {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2269e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2270e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2271e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2272e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2273e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG0(m)                     {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m);}
2274e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG1(m,p1)                  {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1);}
2275e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG2(m,p1,p2)               {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1,p2);}
2276e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG3(m,p1,p2,p3)            {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2277e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2278e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2279e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2280e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2281e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LC unit
2282e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2283e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR0(m)                     {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_0(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m);}
2284e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR1(m,p1)                  {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_1(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1);}
2285e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR2(m,p1,p2)               {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_2(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1,p2);}
2286e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR3(m,p1,p2,p3)            {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_3(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2287e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_4(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2288e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_5(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2289e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_ERROR]) BT_TRACE_6(TRACE_LAYER_LC, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2290e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2291e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING0(m)                   {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_0(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m);}
2292e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING1(m,p1)                {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_1(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1);}
2293e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING2(m,p1,p2)             {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_2(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1,p2);}
2294e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING3(m,p1,p2,p3)          {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_3(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2295e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_4(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2296e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_5(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2297e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_WARNING]) BT_TRACE_6(TRACE_LAYER_LC, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2298e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2299e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT0(m)                     {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_0(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m);}
2300e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT1(m,p1)                  {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_1(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m, p1);}
2301e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT2(m,p1,p2)               {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_2(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m,p1,p2);}
2302e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT3(m,p1,p2,p3)            {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_3(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2303e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_4(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2304e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_5(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2305e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_EVENT]) BT_TRACE_6(TRACE_LAYER_LC, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2306e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2307e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG0(m)                     {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_0(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m);}
2308e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG1(m,p1)                  {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_1(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m,p1);}
2309e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG2(m,p1,p2)               {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_2(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m,p1,p2);}
2310e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG3(m,p1,p2,p3)            {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_3(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2311e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_5(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2312e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (lc_trace_level & trace_map[BT_TRACE_LEVEL_DEBUG]) BT_TRACE_6(TRACE_LAYER_LC, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2313e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2314e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the Serial Dongle Application SDA
2315e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2316e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR0(m)                     {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(m);}
2317e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR1(m,p1)                  {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(m,p1);}
2318e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR2(m,p1,p2)               {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(m,p1,p2);}
2319e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR3(m,p1,p2,p3)            {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(m,p1,p2,p3);}
2320e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(m,p1,p2,p3,p4);}
2321e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(m,p1,p2,p3,p4,p5);}
2322e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(m,p1,p2,p3,p4,p5,p6);}
2323e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2324e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING0(m)                   {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(m);}
2325e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING1(m,p1)                {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(m,p1);}
2326e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING2(m,p1,p2)             {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(m,p1,p2);}
2327e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING3(m,p1,p2,p3)          {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(m,p1,p2,p3);}
2328e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(m,p1,p2,p3,p4);}
2329e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(m,p1,p2,p3,p4,p5);}
2330e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(m,p1,p2,p3,p4,p5,p6);}
2331e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2332e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT0(m)                     {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(m);}
2333e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT1(m,p1)                  {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(m, p1);}
2334e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT2(m,p1,p2)               {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(m,p1,p2);}
2335e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT3(m,p1,p2,p3)            {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(m,p1,p2,p3);}
2336e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(m,p1,p2,p3,p4);}
2337e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(m,p1,p2,p3,p4,p5);}
2338e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(m,p1,p2,p3,p4,p5,p6);}
2339e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2340e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG0(m)                     {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(m);}
2341e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG1(m,p1)                  {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(m,p1);}
2342e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG2(m,p1,p2)               {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(m,p1,p2);}
2343e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG3(m,p1,p2,p3)            {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(m,p1,p2,p3);}
2344e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(m,p1,p2,p3,p4);}
2345e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(m,p1,p2,p3,p4,p5);}
2346e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(m,p1,p2,p3,p4,p5,p6);}
2347e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2348e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* AVDTP
2349e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2350e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR0(m)                     {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m);}
2351e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR1(m,p1)                  {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1);}
2352e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR2(m,p1,p2)               {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2);}
2353e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR3(m,p1,p2,p3)            {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2354e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2355e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2356e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2357e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2358e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING0(m)                   {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m);}
2359e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING1(m,p1)                {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1);}
2360e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING2(m,p1,p2)             {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2);}
2361e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING3(m,p1,p2,p3)          {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2362e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2363e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2364e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2365e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2366e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT0(m)                     {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m);}
2367e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT1(m,p1)                  {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m, p1);}
2368e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT2(m,p1,p2)               {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2);}
2369e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT3(m,p1,p2,p3)            {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2370e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2371e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2372e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2373e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2374e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG0(m)                     {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m);}
2375e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG1(m,p1)                  {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1);}
2376e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG2(m,p1,p2)               {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2);}
2377e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG3(m,p1,p2,p3)            {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2378e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2379e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2380e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2381e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2382e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API0(m)                     {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API, m);}
2383e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API1(m,p1)                  {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1);}
2384e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API2(m,p1,p2)               {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2);}
2385e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API3(m,p1,p2,p3)            {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3);}
2386e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API4(m,p1,p2,p3,p4)         {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2387e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API5(m,p1,p2,p3,p4,p5)      {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2388e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)   {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2389e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2390e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AVCTP protocol
2391e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2392e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR0(m)                     {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m);}
2393e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR1(m,p1)                  {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1);}
2394e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR2(m,p1,p2)               {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2);}
2395e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR3(m,p1,p2,p3)            {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2396e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2397e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2398e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2399e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2400e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING0(m)                   {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m);}
2401e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING1(m,p1)                {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1);}
2402e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING2(m,p1,p2)             {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2);}
2403e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING3(m,p1,p2,p3)          {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2404e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2405e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2406e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2407e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2408e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT0(m)                     {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m);}
2409e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT1(m,p1)                  {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m, p1);}
2410e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT2(m,p1,p2)               {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2);}
2411e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT3(m,p1,p2,p3)            {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2412e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2413e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2414e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2415e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2416e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG0(m)                     {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m);}
2417e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG1(m,p1)                  {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1);}
2418e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG2(m,p1,p2)               {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2);}
2419e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG3(m,p1,p2,p3)            {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2420e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2421e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2422e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2423e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2424e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API0(m)                     {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API, m);}
2425e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API1(m,p1)                  {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1);}
2426e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API2(m,p1,p2)               {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2);}
2427e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API3(m,p1,p2,p3)            {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3);}
2428e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API4(m,p1,p2,p3,p4)         {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2429e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API5(m,p1,p2,p3,p4,p5)      {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2430e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)   {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2431e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2432e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2433e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AVRCP profile
2434e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2435e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR0(m)                      {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m);}
2436e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR1(m,p1)                   {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1);}
2437e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR2(m,p1,p2)                {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2);}
2438e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR3(m,p1,p2,p3)             {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3);}
2439e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR4(m,p1,p2,p3,p4)          {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4);}
2440e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5);}
2441e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m,p1,p2,p3,p4,p5,p6);}
2442e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2443e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING0(m)                    {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m);}
2444e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING1(m,p1)                 {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1);}
2445e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING2(m,p1,p2)              {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2);}
2446e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING3(m,p1,p2,p3)           {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3);}
2447e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING4(m,p1,p2,p3,p4)        {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4);}
2448e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)     {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5);}
2449e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)  {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m,p1,p2,p3,p4,p5,p6);}
2450e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2451e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT0(m)                      {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m);}
2452e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT1(m,p1)                   {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m, p1);}
2453e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT2(m,p1,p2)                {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2);}
2454e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT3(m,p1,p2,p3)             {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3);}
2455e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT4(m,p1,p2,p3,p4)          {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4);}
2456e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)       {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5);}
2457e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)    {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m,p1,p2,p3,p4,p5,p6);}
2458e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2459e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG0(m)                      {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m);}
2460e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG1(m,p1)                   {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1);}
2461e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG2(m,p1,p2)                {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2);}
2462e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG3(m,p1,p2,p3)             {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3);}
2463e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG4(m,p1,p2,p3,p4)          {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4);}
2464e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)       {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5);}
2465e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)    {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m,p1,p2,p3,p4,p5,p6);}
2466e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2467e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API0(m)                        {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API,m);}
2468e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API1(m,p1)                     {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_AVP, TRACE_TYPE_API,m, p1);}
2469e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API2(m,p1,p2)                  {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2);}
2470e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API3(m,p1,p2,p3)               {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3);}
2471e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API4(m,p1,p2,p3,p4)            {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4);}
2472e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API5(m,p1,p2,p3,p4,p5)         {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4,p5);}
2473e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)      {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_AVP, TRACE_TYPE_API,m,p1,p2,p3,p4,p5,p6);}
2474e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2475e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* MCAP
2476e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2477e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR0(m)                     {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m);}
2478e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR1(m,p1)                  {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1);}
2479e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR2(m,p1,p2)               {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1,p2);}
2480e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR3(m,p1,p2,p3)            {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2481e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2482e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2483e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2484e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2485e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING0(m)                   {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m);}
2486e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING1(m,p1)                {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1);}
2487e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING2(m,p1,p2)             {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1,p2);}
2488e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING3(m,p1,p2,p3)          {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2489e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2490e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2491e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2492e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2493e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT0(m)                     {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m);}
2494e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT1(m,p1)                  {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m, p1);}
2495e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT2(m,p1,p2)               {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m,p1,p2);}
2496e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT3(m,p1,p2,p3)            {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2497e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2498e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2499e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2500e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2501e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG0(m)                     {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m);}
2502e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG1(m,p1)                  {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1);}
2503e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG2(m,p1,p2)               {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1,p2);}
2504e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG3(m,p1,p2,p3)            {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2505e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2506e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2507e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2508e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2509e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API0(m)                     {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_API, m);}
2510e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API1(m,p1)                  {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1);}
2511e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API2(m,p1,p2)               {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1,p2);}
2512e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API3(m,p1,p2,p3)            {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1,p2,p3);}
2513e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API4(m,p1,p2,p3,p4)         {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2514e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API5(m,p1,p2,p3,p4,p5)      {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2515e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API6(m,p1,p2,p3,p4,p5,p6)   {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_MCA, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2516e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2517e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AMP unit
2518e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2519e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR0(m)                     {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m);}
2520e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR1(m,p1)                  {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1);}
2521e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR2(m,p1,p2)               {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1,p2);}
2522e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR3(m,p1,p2,p3)            {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2523e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2524e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2525e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2526e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2527e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING0(m)                   {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m);}
2528e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING1(m,p1)                {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1);}
2529e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING2(m,p1,p2)             {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1,p2);}
2530e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING3(m,p1,p2,p3)          {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2531e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2532e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2533e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2534e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2535e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API0(m)                       {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_API, m);}
2536e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API1(m,p1)                    {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1);}
2537e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API2(m,p1,p2)                 {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1,p2);}
2538e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API3(m,p1,p2,p3)              {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1,p2,p3);}
2539e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API4(m,p1,p2,p3,p4)           {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2540e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2541e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_AMP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2542e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2543e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT0(m)                     {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m);}
2544e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT1(m,p1)                  {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m, p1);}
2545e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT2(m,p1,p2)               {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m,p1,p2);}
2546e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT3(m,p1,p2,p3)            {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2547e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2548e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2549e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2550e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2551e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG0(m)                     {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m);}
2552e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG1(m,p1)                  {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1);}
2553e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG2(m,p1,p2)               {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1,p2);}
2554e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG3(m,p1,p2,p3)            {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2555e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2556e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2557e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2558e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2559e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the ATT/GATT unit
2560e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2561e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR0(m)                     {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m);}
2562e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR1(m,p1)                  {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1);}
2563e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR2(m,p1,p2)               {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1,p2);}
2564e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR3(m,p1,p2,p3)            {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2565e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2566e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2567e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2568e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2569e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING0(m)                   {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m);}
2570e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING1(m,p1)                {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1);}
2571e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING2(m,p1,p2)             {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1,p2);}
2572e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING3(m,p1,p2,p3)          {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2573e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2574e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2575e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2576e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2577e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API0(m)                       {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_API, m);}
2578e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API1(m,p1)                    {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1);}
2579e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API2(m,p1,p2)                 {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1,p2);}
2580e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API3(m,p1,p2,p3)              {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1,p2,p3);}
2581e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API4(m,p1,p2,p3,p4)           {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2582e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2583e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_ATT, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2584e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2585e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT0(m)                     {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m);}
2586e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT1(m,p1)                  {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m, p1);}
2587e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT2(m,p1,p2)               {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m,p1,p2);}
2588e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT3(m,p1,p2,p3)            {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2589e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2590e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2591e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2592e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2593e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG0(m)                     {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m);}
2594e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG1(m,p1)                  {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1);}
2595e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG2(m,p1,p2)               {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1,p2);}
2596e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG3(m,p1,p2,p3)            {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2597e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2598e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2599e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2600e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2601e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the SMP unit
2602e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2603e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR0(m)                     {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m);}
2604e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR1(m,p1)                  {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1);}
2605e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR2(m,p1,p2)               {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1,p2);}
2606e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR3(m,p1,p2,p3)            {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1,p2,p3);}
2607e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR4(m,p1,p2,p3,p4)         {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);}
2608e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)      {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);}
2609e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)   {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);}
2610e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2611e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING0(m)                   {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m);}
2612e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING1(m,p1)                {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1);}
2613e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING2(m,p1,p2)             {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1,p2);}
2614e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING3(m,p1,p2,p3)          {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1,p2,p3);}
2615e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING4(m,p1,p2,p3,p4)       {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);}
2616e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)    {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);}
2617e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);}
2618e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2619e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API0(m)                       {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_API, m);}
2620e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API1(m,p1)                    {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1);}
2621e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API2(m,p1,p2)                 {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1,p2);}
2622e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API3(m,p1,p2,p3)              {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1,p2,p3);}
2623e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API4(m,p1,p2,p3,p4)           {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1,p2,p3,p4);}
2624e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API5(m,p1,p2,p3,p4,p5)        {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);}
2625e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)     {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_SMP, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);}
2626e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2627e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT0(m)                     {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m);}
2628e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT1(m,p1)                  {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m, p1);}
2629e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT2(m,p1,p2)               {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m,p1,p2);}
2630e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT3(m,p1,p2,p3)            {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m,p1,p2,p3);}
2631e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT4(m,p1,p2,p3,p4)         {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);}
2632e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)      {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);}
2633e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)   {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);}
2634e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2635e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG0(m)                     {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m);}
2636e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG1(m,p1)                  {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1);}
2637e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG2(m,p1,p2)               {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1,p2);}
2638e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG3(m,p1,p2,p3)            {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1,p2,p3);}
2639e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG4(m,p1,p2,p3,p4)         {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);}
2640e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)      {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);}
2641e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)   {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);}
2642e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2643e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* END OF USE TRACES */
2644e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else
2645e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2646e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_0(l,t,m)
2647e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_1(l,t,m,p1)
2648e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_2(l,t,m,p1,p2)
2649e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_3(l,t,m,p1,p2,p3)
2650e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_4(l,t,m,p1,p2,p3,p4)
2651e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_5(l,t,m,p1,p2,p3,p4,p5)
2652e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_TRACE_6(l,t,m,p1,p2,p3,p4,p5,p6)
2653e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2654e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_0(l,m)
2655e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_1(l,m,p1)
2656e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_2(l,m,p1,p2)
2657e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BT_ERROR_TRACE_3(l,m,p1,p2,p3)
2658e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2659e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the HCI unit
2660e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2661e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR0(m)
2662e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR1(m,p1)
2663e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR2(m,p1,p2)
2664e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR3(m,p1,p2,p3)
2665e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR4(m,p1,p2,p3,p4)
2666e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2667e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2668e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2669e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING0(m)
2670e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING1(m,p1)
2671e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING2(m,p1,p2)
2672e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING3(m,p1,p2,p3)
2673e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING4(m,p1,p2,p3,p4)
2674e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2675e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2676e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2677e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT0(m)
2678e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT1(m,p1)
2679e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT2(m,p1,p2)
2680e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT3(m,p1,p2,p3)
2681e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT4(m,p1,p2,p3,p4)
2682e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2683e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2684e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2685e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG0(m)
2686e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG1(m,p1)
2687e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG2(m,p1,p2)
2688e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG3(m,p1,p2,p3)
2689e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG4(m,p1,p2,p3,p4)
2690e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2691e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2692e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2693e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2694e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for BTM
2695e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2696e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR0(m)
2697e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR1(m,p1)
2698e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR2(m,p1,p2)
2699e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR3(m,p1,p2,p3)
2700e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR4(m,p1,p2,p3,p4)
2701e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2702e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2703e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2704e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING0(m)
2705e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING1(m,p1)
2706e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING2(m,p1,p2)
2707e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING3(m,p1,p2,p3)
2708e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING4(m,p1,p2,p3,p4)
2709e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2710e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2711e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2712e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API0(m)
2713e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API1(m,p1)
2714e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API2(m,p1,p2)
2715e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API3(m,p1,p2,p3)
2716e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API4(m,p1,p2,p3,p4)
2717e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API5(m,p1,p2,p3,p4,p5)
2718e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2719e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2720e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT0(m)
2721e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT1(m,p1)
2722e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT2(m,p1,p2)
2723e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT3(m,p1,p2,p3)
2724e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT4(m,p1,p2,p3,p4)
2725e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2726e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2727e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2728e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG0(m)
2729e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG1(m,p1)
2730e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG2(m,p1,p2)
2731e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG3(m,p1,p2,p3)
2732e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG4(m,p1,p2,p3,p4)
2733e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2734e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BTM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2735e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2736e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2737e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the L2CAP unit
2738e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2739e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR0(m)
2740e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR1(m,p1)
2741e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR2(m,p1,p2)
2742e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR3(m,p1,p2,p3)
2743e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR4(m,p1,p2,p3,p4)
2744e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2745e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2746e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2747e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING0(m)
2748e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING1(m,p1)
2749e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING2(m,p1,p2)
2750e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING3(m,p1,p2,p3)
2751e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING4(m,p1,p2,p3,p4)
2752e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2753e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2754e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2755e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API0(m)
2756e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API1(m,p1)
2757e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API2(m,p1,p2)
2758e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API3(m,p1,p2,p3)
2759e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API4(m,p1,p2,p3,p4)
2760e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API5(m,p1,p2,p3,p4,p5)
2761e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2762e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2763e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT0(m)
2764e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT1(m,p1)
2765e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT2(m,p1,p2)
2766e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT3(m,p1,p2,p3)
2767e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT4(m,p1,p2,p3,p4)
2768e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2769e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2770e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2771e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG0(m)
2772e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG1(m,p1)
2773e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG2(m,p1,p2)
2774e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG3(m,p1,p2,p3)
2775e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG4(m,p1,p2,p3,p4)
2776e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2777e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define L2CAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2778e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2779e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LLCP unit
2780e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2781e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR0(m)
2782e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR1(m,p1)
2783e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR2(m,p1,p2)
2784e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR3(m,p1,p2,p3)
2785e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR4(m,p1,p2,p3,p4)
2786e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2787e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2788e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2789e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING0(m)
2790e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING1(m,p1)
2791e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING2(m,p1,p2)
2792e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING3(m,p1,p2,p3)
2793e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING4(m,p1,p2,p3,p4)
2794e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2795e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2796e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2797e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API0(m)
2798e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API1(m,p1)
2799e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API2(m,p1,p2)
2800e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API3(m,p1,p2,p3)
2801e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API4(m,p1,p2,p3,p4)
2802e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API5(m,p1,p2,p3,p4,p5)
2803e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2804e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2805e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT0(m)
2806e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT1(m,p1)
2807e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT2(m,p1,p2)
2808e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT3(m,p1,p2,p3)
2809e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT4(m,p1,p2,p3,p4)
2810e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2811e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2812e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2813e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG0(m)
2814e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG1(m,p1)
2815e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG2(m,p1,p2)
2816e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG3(m,p1,p2,p3)
2817e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG4(m,p1,p2,p3,p4)
2818e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2819e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LLCP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2820e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2821e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the SDP unit
2822e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2823e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR0(m)
2824e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR1(m,p1)
2825e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR2(m,p1,p2)
2826e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR3(m,p1,p2,p3)
2827e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR4(m,p1,p2,p3,p4)
2828e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2829e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2830e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2831e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING0(m)
2832e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING1(m,p1)
2833e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING2(m,p1,p2)
2834e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING3(m,p1,p2,p3)
2835e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING4(m,p1,p2,p3,p4)
2836e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2837e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2838e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2839e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API0(m)
2840e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API1(m,p1)
2841e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API2(m,p1,p2)
2842e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API3(m,p1,p2,p3)
2843e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API4(m,p1,p2,p3,p4)
2844e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API5(m,p1,p2,p3,p4,p5)
2845e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2846e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2847e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT0(m)
2848e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT1(m,p1)
2849e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT2(m,p1,p2)
2850e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT3(m,p1,p2,p3)
2851e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT4(m,p1,p2,p3,p4)
2852e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2853e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2854e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2855e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG0(m)
2856e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG1(m,p1)
2857e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG2(m,p1,p2)
2858e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG3(m,p1,p2,p3)
2859e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG4(m,p1,p2,p3,p4)
2860e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2861e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2862e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2863e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the RFCOMM unit
2864e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2865e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR0(m)
2866e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR1(m,p1)
2867e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR2(m,p1,p2)
2868e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR3(m,p1,p2,p3)
2869e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR4(m,p1,p2,p3,p4)
2870e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2871e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2872e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2873e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING0(m)
2874e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING1(m,p1)
2875e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING2(m,p1,p2)
2876e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING3(m,p1,p2,p3)
2877e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING4(m,p1,p2,p3,p4)
2878e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2879e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2880e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2881e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API0(m)
2882e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API1(m,p1)
2883e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API2(m,p1,p2)
2884e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API3(m,p1,p2,p3)
2885e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API4(m,p1,p2,p3,p4)
2886e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API5(m,p1,p2,p3,p4,p5)
2887e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2888e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2889e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT0(m)
2890e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT1(m,p1)
2891e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT2(m,p1,p2)
2892e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT3(m,p1,p2,p3)
2893e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT4(m,p1,p2,p3,p4)
2894e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2895e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2896e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2897e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG0(m)
2898e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG1(m,p1)
2899e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG2(m,p1,p2)
2900e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG3(m,p1,p2,p3)
2901e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG4(m,p1,p2,p3,p4)
2902e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2903e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RFCOMM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2904e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2905e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for Serial Port Profile
2906e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2907e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR0(m)
2908e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR1(m,p1)
2909e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR2(m,p1,p2)
2910e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR3(m,p1,p2,p3)
2911e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR4(m,p1,p2,p3,p4)
2912e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2913e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2914e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2915e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING0(m)
2916e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING1(m,p1)
2917e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING2(m,p1,p2)
2918e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING3(m,p1,p2,p3)
2919e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING4(m,p1,p2,p3,p4)
2920e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2921e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2922e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2923e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT0(m)
2924e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT1(m,p1)
2925e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT2(m,p1,p2)
2926e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT3(m,p1,p2,p3)
2927e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT4(m,p1,p2,p3,p4)
2928e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2929e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2930e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2931e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API0(m)
2932e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API1(m,p1)
2933e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API2(m,p1,p2)
2934e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API3(m,p1,p2,p3)
2935e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API4(m,p1,p2,p3,p4)
2936e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API5(m,p1,p2,p3,p4,p5)
2937e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2938e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2939e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG0(m)
2940e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG1(m,p1)
2941e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG2(m,p1,p2)
2942e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG3(m,p1,p2,p3)
2943e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG4(m,p1,p2,p3,p4)
2944e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
2945e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
2946e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2947e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2948e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Generic Access Profile traces */
2949e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR0(m)
2950e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR1(m,p1)
2951e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR2(m,p1,p2)
2952e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR3(m,p1,p2,p3)
2953e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR4(m,p1,p2,p3,p4)
2954e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2955e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2956e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2957e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT0(m)
2958e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT1(m,p1)
2959e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT2(m,p1,p2)
2960e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT3(m,p1,p2,p3)
2961e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT4(m,p1,p2,p3,p4)
2962e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
2963e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
2964e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2965e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API0(m)
2966e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API1(m,p1)
2967e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API2(m,p1,p2)
2968e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API3(m,p1,p2,p3)
2969e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API4(m,p1,p2,p3,p4)
2970e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API5(m,p1,p2,p3,p4,p5)
2971e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
2972e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2973e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING0(m)
2974e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING1(m,p1)
2975e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING2(m,p1,p2)
2976e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING3(m,p1,p2,p3)
2977e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING4(m,p1,p2,p3,p4)
2978e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2979e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2980e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2981e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2982e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for OBX
2983e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
2984e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR0(m)
2985e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR1(m,p1)
2986e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR2(m,p1,p2)
2987e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR3(m,p1,p2,p3)
2988e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR4(m,p1,p2,p3,p4)
2989e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
2990e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
2991e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
2992e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING0(m)
2993e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING1(m,p1)
2994e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING2(m,p1,p2)
2995e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING3(m,p1,p2,p3)
2996e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING4(m,p1,p2,p3,p4)
2997e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
2998e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
2999e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3000e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT0(m)
3001e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT1(m,p1)
3002e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT2(m,p1,p2)
3003e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT3(m,p1,p2,p3)
3004e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT4(m,p1,p2,p3,p4)
3005e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3006e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3007e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3008e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG0(m)
3009e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG1(m,p1)
3010e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG2(m,p1,p2)
3011e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG3(m,p1,p2,p3)
3012e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG4(m,p1,p2,p3,p4)
3013e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3014e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3015e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3016e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API0(m)
3017e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API1(m,p1)
3018e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API2(m,p1,p2)
3019e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API3(m,p1,p2,p3)
3020e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API4(m,p1,p2,p3,p4)
3021e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API5(m,p1,p2,p3,p4,p5)
3022e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OBX_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3023e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3024e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for GOEP application profiles
3025e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3026e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR0(m)
3027e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR1(m,p1)
3028e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR2(m,p1,p2)
3029e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR3(m,p1,p2,p3)
3030e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR4(m,p1,p2,p3,p4)
3031e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3032e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3033e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3034e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING0(m)
3035e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING1(m,p1)
3036e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING2(m,p1,p2)
3037e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING3(m,p1,p2,p3)
3038e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING4(m,p1,p2,p3,p4)
3039e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3040e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3041e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3042e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT0(m)
3043e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT1(m,p1)
3044e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT2(m,p1,p2)
3045e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT3(m,p1,p2,p3)
3046e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT4(m,p1,p2,p3,p4)
3047e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3048e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3049e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3050e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG0(m)
3051e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG1(m,p1)
3052e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG2(m,p1,p2)
3053e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG3(m,p1,p2,p3)
3054e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3055e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3056e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3057e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API0(m)
3058e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API1(m,p1)
3059e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API2(m,p1,p2)
3060e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API3(m,p1,p2,p3)
3061e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API4(m,p1,p2,p3,p4)
3062e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API5(m,p1,p2,p3,p4,p5)
3063e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GOEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3064e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3065e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the BPP profile
3066e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3067e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR0(m)
3068e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR1(m,p1)
3069e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR2(m,p1,p2)
3070e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR3(m,p1,p2,p3)
3071e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR4(m,p1,p2,p3,p4)
3072e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3073e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3074e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3075e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING0(m)
3076e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING1(m,p1)
3077e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING2(m,p1,p2)
3078e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING3(m,p1,p2,p3)
3079e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING4(m,p1,p2,p3,p4)
3080e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3081e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3082e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3083e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT0(m)
3084e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT1(m,p1)
3085e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT2(m,p1,p2)
3086e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT3(m,p1,p2,p3)
3087e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT4(m,p1,p2,p3,p4)
3088e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3089e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3090e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3091e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG0(m)
3092e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG1(m,p1)
3093e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG2(m,p1,p2)
3094e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG3(m,p1,p2,p3)
3095e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3096e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3097e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3098e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3099e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API0(m)
3100e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API1(m,p1)
3101e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API2(m,p1,p2)
3102e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API3(m,p1,p2,p3)
3103e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API4(m,p1,p2,p3,p4)
3104e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API5(m,p1,p2,p3,p4,p5)
3105e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3106e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3107e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the BIP profile
3108e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3109e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR0(m)
3110e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR1(m,p1)
3111e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR2(m,p1,p2)
3112e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR3(m,p1,p2,p3)
3113e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR4(m,p1,p2,p3,p4)
3114e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3115e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3116e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3117e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING0(m)
3118e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING1(m,p1)
3119e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING2(m,p1,p2)
3120e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING3(m,p1,p2,p3)
3121e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING4(m,p1,p2,p3,p4)
3122e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3123e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3124e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3125e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT0(m)
3126e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT1(m,p1)
3127e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT2(m,p1,p2)
3128e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT3(m,p1,p2,p3)
3129e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT4(m,p1,p2,p3,p4)
3130e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3131e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3132e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3133e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG0(m)
3134e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG1(m,p1)
3135e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG2(m,p1,p2)
3136e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG3(m,p1,p2,p3)
3137e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3138e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3139e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3140e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3141e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API0(m)
3142e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API1(m,p1)
3143e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API2(m,p1,p2)
3144e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API3(m,p1,p2,p3)
3145e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API4(m,p1,p2,p3,p4)
3146e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API5(m,p1,p2,p3,p4,p5)
3147e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BIP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3148e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3149e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for TCS
3150e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3151e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR0(m)
3152e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR1(m,p1)
3153e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR2(m,p1,p2)
3154e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR3(m,p1,p2,p3)
3155e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR4(m,p1,p2,p3,p4)
3156e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3157e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3158e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3159e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING0(m)
3160e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING1(m,p1)
3161e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING2(m,p1,p2)
3162e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING3(m,p1,p2,p3)
3163e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING4(m,p1,p2,p3,p4)
3164e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3165e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3166e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3167e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT0(m)
3168e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT1(m,p1)
3169e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT2(m,p1,p2)
3170e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT3(m,p1,p2,p3)
3171e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT4(m,p1,p2,p3,p4)
3172e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3173e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3174e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3175e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG0(m)
3176e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG1(m,p1)
3177e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG2(m,p1,p2)
3178e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG3(m,p1,p2,p3)
3179e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG4(m,p1,p2,p3,p4)
3180e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3181e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3182e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3183e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API0(m)
3184e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API1(m,p1)
3185e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API2(m,p1,p2)
3186e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API3(m,p1,p2,p3)
3187e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API4(m,p1,p2,p3,p4)
3188e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API5(m,p1,p2,p3,p4,p5)
3189e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define TCS_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3190e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3191e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for ICP
3192e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3193e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR0(m)
3194e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR1(m,p1)
3195e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR2(m,p1,p2)
3196e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR3(m,p1,p2,p3)
3197e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR4(m,p1,p2,p3,p4)
3198e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3199e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3200e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3201e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING0(m)
3202e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING1(m,p1)
3203e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING2(m,p1,p2)
3204e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING3(m,p1,p2,p3)
3205e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING4(m,p1,p2,p3,p4)
3206e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3207e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3208e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3209e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT0(m)
3210e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT1(m,p1)
3211e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT2(m,p1,p2)
3212e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT3(m,p1,p2,p3)
3213e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT4(m,p1,p2,p3,p4)
3214e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3215e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3216e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3217e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG0(m)
3218e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG1(m,p1)
3219e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG2(m,p1,p2)
3220e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG3(m,p1,p2,p3)
3221e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3222e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3223e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3224e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3225e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API0(m)
3226e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API1(m,p1)
3227e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API2(m,p1,p2)
3228e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API3(m,p1,p2,p3)
3229e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API4(m,p1,p2,p3,p4)
3230e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API5(m,p1,p2,p3,p4,p5)
3231e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define ICP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3232e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3233e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for CTP
3234e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3235e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR0(m)
3236e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR1(m,p1)
3237e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR2(m,p1,p2)
3238e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR3(m,p1,p2,p3)
3239e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR4(m,p1,p2,p3,p4)
3240e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3241e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3242e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3243e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING0(m)
3244e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING1(m,p1)
3245e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING2(m,p1,p2)
3246e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING3(m,p1,p2,p3)
3247e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING4(m,p1,p2,p3,p4)
3248e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3249e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3250e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3251e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT0(m)
3252e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT1(m,p1)
3253e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT2(m,p1,p2)
3254e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT3(m,p1,p2,p3)
3255e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT4(m,p1,p2,p3,p4)
3256e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3257e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3258e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3259e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG0(m)
3260e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG1(m,p1)
3261e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG2(m,p1,p2)
3262e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG3(m,p1,p2,p3)
3263e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3264e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3265e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3266e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3267e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API0(m)
3268e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API1(m,p1)
3269e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API2(m,p1,p2)
3270e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API3(m,p1,p2,p3)
3271e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API4(m,p1,p2,p3,p4)
3272e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API5(m,p1,p2,p3,p4,p5)
3273e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CTP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3274e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3275e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for headset profile */
3276e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3277e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR0(pcb,m)
3278e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR1(pcb,m,p1)
3279e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR2(pcb,m,p1,p2)
3280e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR3(pcb,m,p1,p2,p3)
3281e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR4(pcb,m,p1,p2,p3,p4)
3282e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR5(pcb,m,p1,p2,p3,p4,p5)
3283e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_ERROR6(pcb,m,p1,p2,p3,p4,p5,p6)
3284e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3285e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING0(pcb,m)
3286e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING1(pcb,m,p1)
3287e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING2(pcb,m,p1,p2)
3288e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING3(pcb,m,p1,p2,p3)
3289e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING4(pcb,m,p1,p2,p3,p4)
3290e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING5(pcb,m,p1,p2,p3,p4,p5)
3291e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_WARNING6(pcb,m,p1,p2,p3,p4,p5,p6)
3292e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3293e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API0(pcb,m)
3294e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API1(pcb,m,p1)
3295e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API2(pcb,m,p1,p2)
3296e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API3(pcb,m,p1,p2,p3)
3297e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API4(pcb,m,p1,p2,p3,p4)
3298e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API5(pcb,m,p1,p2,p3,p4,p5)
3299e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_API6(pcb,m,p1,p2,p3,p4,p5,p6)
3300e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3301e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT0(pcb,m)
3302e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT1(pcb,m,p1)
3303e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT2(pcb,m,p1,p2)
3304e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT3(pcb,m,p1,p2,p3)
3305e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT4(pcb,m,p1,p2,p3,p4)
3306e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT5(pcb,m,p1,p2,p3,p4,p5)
3307e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_EVENT6(pcb,m,p1,p2,p3,p4,p5,p6)
3308e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3309e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG0(pcb,m)
3310e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG1(pcb,m,p1)
3311e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG2(pcb,m,p1,p2)
3312e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG3(pcb,m,p1,p2,p3)
3313e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG4(pcb,m,p1,p2,p3,p4)
3314e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG5(pcb,m,p1,p2,p3,p4,p5)
3315e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HSP2_TRACE_DEBUG6(pcb,m,p1,p2,p3,p4,p5,p6)
3316e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3317e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFC unit
3318e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3319e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR0(m)
3320e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR1(m,p1)
3321e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR2(m,p1,p2)
3322e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR3(m,p1,p2,p3)
3323e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR4(m,p1,p2,p3,p4)
3324e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3325e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3326e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3327e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING0(m)
3328e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING1(m,p1)
3329e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING2(m,p1,p2)
3330e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING3(m,p1,p2,p3)
3331e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING4(m,p1,p2,p3,p4)
3332e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3333e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3334e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3335e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API0(m)
3336e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API1(m,p1)
3337e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API2(m,p1,p2)
3338e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API3(m,p1,p2,p3)
3339e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API4(m,p1,p2,p3,p4)
3340e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API5(m,p1,p2,p3,p4,p5)
3341e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3342e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3343e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT0(m)
3344e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT1(m,p1)
3345e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT2(m,p1,p2)
3346e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT3(m,p1,p2,p3)
3347e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT4(m,p1,p2,p3,p4)
3348e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3349e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3350e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3351e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG0(m)
3352e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG1(m,p1)
3353e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG2(m,p1,p2)
3354e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG3(m,p1,p2,p3)
3355e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG4(m,p1,p2,p3,p4)
3356e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3357e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3358e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3359e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR0(m)
3360e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR1(m,p1)
3361e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR2(m,p1,p2)
3362e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR3(m,p1,p2,p3)
3363e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR4(m,p1,p2,p3,p4)
3364e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3365e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3366e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3367e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING0(m)
3368e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING1(m,p1)
3369e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING2(m,p1,p2)
3370e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING3(m,p1,p2,p3)
3371e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING4(m,p1,p2,p3,p4)
3372e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3373e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3374e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3375e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API0(m)
3376e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API1(m,p1)
3377e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API2(m,p1,p2)
3378e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API3(m,p1,p2,p3)
3379e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API4(m,p1,p2,p3,p4)
3380e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API5(m,p1,p2,p3,p4,p5)
3381e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3382e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3383e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT0(m)
3384e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT1(m,p1)
3385e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT2(m,p1,p2)
3386e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT3(m,p1,p2,p3)
3387e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT4(m,p1,p2,p3,p4)
3388e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3389e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3390e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3391e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG0(m)
3392e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG1(m,p1)
3393e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG2(m,p1,p2)
3394e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG3(m,p1,p2,p3)
3395e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG4(m,p1,p2,p3,p4)
3396e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3397e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3398e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3399e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR0(m)
3400e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR1(m,p1)
3401e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR2(m,p1,p2)
3402e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR3(m,p1,p2,p3)
3403e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR4(m,p1,p2,p3,p4)
3404e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3405e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3406e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3407e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING0(m)
3408e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING1(m,p1)
3409e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING2(m,p1,p2)
3410e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING3(m,p1,p2,p3)
3411e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING4(m,p1,p2,p3,p4)
3412e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3413e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) }
3414e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3415e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API0(m)
3416e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API1(m,p1)
3417e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API2(m,p1,p2)
3418e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API3(m,p1,p2,p3)
3419e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API4(m,p1,p2,p3,p4)
3420e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API5(m,p1,p2,p3,p4,p5)
3421e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3422e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3423e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT0(m)
3424e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT1(m,p1)
3425e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT2(m,p1,p2)
3426e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT3(m,p1,p2,p3)
3427e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT4(m,p1,p2,p3,p4)
3428e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3429e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3430e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3431e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG0(m)
3432e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG1(m,p1)
3433e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG2(m,p1,p2)
3434e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG3(m,p1,p2,p3)
3435e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG4(m,p1,p2,p3,p4)
3436e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3437e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RW_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3438e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3439e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR0(m)
3440e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR1(m,p1)
3441e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR2(m,p1,p2)
3442e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR3(m,p1,p2,p3)
3443e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR4(m,p1,p2,p3,p4)
3444e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3445e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3446e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3447e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING0(m)
3448e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING1(m,p1)
3449e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING2(m,p1,p2)
3450e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING3(m,p1,p2,p3)
3451e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING4(m,p1,p2,p3,p4)
3452e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3453e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3454e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3455e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API0(m)
3456e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API1(m,p1)
3457e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API2(m,p1,p2)
3458e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API3(m,p1,p2,p3)
3459e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API4(m,p1,p2,p3,p4)
3460e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API5(m,p1,p2,p3,p4,p5)
3461e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3462e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3463e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT0(m)
3464e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT1(m,p1)
3465e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT2(m,p1,p2)
3466e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT3(m,p1,p2,p3)
3467e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT4(m,p1,p2,p3,p4)
3468e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3469e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3470e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3471e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG0(m)
3472e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG1(m,p1)
3473e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG2(m,p1,p2)
3474e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG3(m,p1,p2,p3)
3475e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG4(m,p1,p2,p3,p4)
3476e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3477e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CE_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3478e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3479e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR0(m)
3480e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR1(m,p1)
3481e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR2(m,p1,p2)
3482e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR3(m,p1,p2,p3)
3483e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR4(m,p1,p2,p3,p4)
3484e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3485e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3486e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3487e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING0(m)
3488e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING1(m,p1)
3489e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING2(m,p1,p2)
3490e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING3(m,p1,p2,p3)
3491e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING4(m,p1,p2,p3,p4)
3492e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3493e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3494e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3495e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API0(m)
3496e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API1(m,p1)
3497e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API2(m,p1,p2)
3498e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API3(m,p1,p2,p3)
3499e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API4(m,p1,p2,p3,p4)
3500e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API5(m,p1,p2,p3,p4,p5)
3501e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3502e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3503e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT0(m)
3504e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT1(m,p1)
3505e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT2(m,p1,p2)
3506e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT3(m,p1,p2,p3)
3507e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT4(m,p1,p2,p3,p4)
3508e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3509e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3510e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3511e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG0(m)
3512e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG1(m,p1)
3513e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG2(m,p1,p2)
3514e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG3(m,p1,p2,p3)
3515e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG4(m,p1,p2,p3,p4)
3516e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3517e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NDEF_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3518e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3519e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA unit
3520e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3521e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR0(m)
3522e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR1(m,p1)
3523e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR2(m,p1,p2)
3524e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR3(m,p1,p2,p3)
3525e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR4(m,p1,p2,p3,p4)
3526e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3527e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3528e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3529e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING0(m)
3530e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING1(m,p1)
3531e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING2(m,p1,p2)
3532e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING3(m,p1,p2,p3)
3533e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING4(m,p1,p2,p3,p4)
3534e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3535e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3536e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3537e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API0(m)
3538e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API1(m,p1)
3539e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API2(m,p1,p2)
3540e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API3(m,p1,p2,p3)
3541e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API4(m,p1,p2,p3,p4)
3542e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API5(m,p1,p2,p3,p4,p5)
3543e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3544e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3545e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT0(m)
3546e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT1(m,p1)
3547e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT2(m,p1,p2)
3548e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT3(m,p1,p2,p3)
3549e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT4(m,p1,p2,p3,p4)
3550e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3551e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3552e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3553e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG0(m)
3554e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG1(m,p1)
3555e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG2(m,p1,p2)
3556e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG3(m,p1,p2,p3)
3557e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG4(m,p1,p2,p3,p4)
3558e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3559e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define NFA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3560e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3561e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA P2P unit
3562e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3563e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR0(m)
3564e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR1(m,p1)
3565e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR2(m,p1,p2)
3566e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR3(m,p1,p2,p3)
3567e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR4(m,p1,p2,p3,p4)
3568e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3569e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3570e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3571e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING0(m)
3572e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING1(m,p1)
3573e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING2(m,p1,p2)
3574e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING3(m,p1,p2,p3)
3575e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING4(m,p1,p2,p3,p4)
3576e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3577e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3578e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3579e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API0(m)
3580e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API1(m,p1)
3581e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API2(m,p1,p2)
3582e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API3(m,p1,p2,p3)
3583e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API4(m,p1,p2,p3,p4)
3584e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API5(m,p1,p2,p3,p4,p5)
3585e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3586e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3587e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT0(m)
3588e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT1(m,p1)
3589e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT2(m,p1,p2)
3590e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT3(m,p1,p2,p3)
3591e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT4(m,p1,p2,p3,p4)
3592e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3593e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3594e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3595e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG0(m)
3596e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG1(m,p1)
3597e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG2(m,p1,p2)
3598e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG3(m,p1,p2,p3)
3599e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG4(m,p1,p2,p3,p4)
3600e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3601e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define P2P_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3602e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3603e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA CHO unit
3604e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3605e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR0(m)
3606e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR1(m,p1)
3607e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR2(m,p1,p2)
3608e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR3(m,p1,p2,p3)
3609e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR4(m,p1,p2,p3,p4)
3610e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3611e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3612e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3613e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING0(m)
3614e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING1(m,p1)
3615e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING2(m,p1,p2)
3616e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING3(m,p1,p2,p3)
3617e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING4(m,p1,p2,p3,p4)
3618e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3619e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3620e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3621e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API0(m)
3622e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API1(m,p1)
3623e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API2(m,p1,p2)
3624e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API3(m,p1,p2,p3)
3625e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API4(m,p1,p2,p3,p4)
3626e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API5(m,p1,p2,p3,p4,p5)
3627e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3628e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3629e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT0(m)
3630e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT1(m,p1)
3631e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT2(m,p1,p2)
3632e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT3(m,p1,p2,p3)
3633e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT4(m,p1,p2,p3,p4)
3634e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3635e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3636e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3637e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG0(m)
3638e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG1(m,p1)
3639e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG2(m,p1,p2)
3640e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG3(m,p1,p2,p3)
3641e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG4(m,p1,p2,p3,p4)
3642e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3643e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define CHO_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3644e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3645e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the NFA SNEP unit
3646e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
3647e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR0(m)
3648e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR1(m,p1)
3649e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR2(m,p1,p2)
3650e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR3(m,p1,p2,p3)
3651e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR4(m,p1,p2,p3,p4)
3652e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3653e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3654e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3655e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING0(m)
3656e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING1(m,p1)
3657e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING2(m,p1,p2)
3658e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING3(m,p1,p2,p3)
3659e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING4(m,p1,p2,p3,p4)
3660e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3661e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3662e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3663e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API0(m)
3664e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API1(m,p1)
3665e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API2(m,p1,p2)
3666e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API3(m,p1,p2,p3)
3667e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API4(m,p1,p2,p3,p4)
3668e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API5(m,p1,p2,p3,p4,p5)
3669e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3670e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3671e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT0(m)
3672e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT1(m,p1)
3673e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT2(m,p1,p2)
3674e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT3(m,p1,p2,p3)
3675e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT4(m,p1,p2,p3,p4)
3676e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3677e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3678e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3679e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG0(m)
3680e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG1(m,p1)
3681e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG2(m,p1,p2)
3682e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG3(m,p1,p2,p3)
3683e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3684e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3685e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SNEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3686e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3687e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3688e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HID Host */
3689e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR0(m)
3690e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR1(m,p1)
3691e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR2(m,p1,p2)
3692e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR3(m,p1,p2,p3)
3693e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR4(m,p1,p2,p3,p4)
3694e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3695e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3696e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3697e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING0(m)
3698e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING1(m,p1)
3699e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING2(m,p1,p2)
3700e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING3(m,p1,p2,p3)
3701e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING4(m,p1,p2,p3,p4)
3702e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3703e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3704e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3705e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API0(m)
3706e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API1(m,p1)
3707e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API2(m,p1,p2)
3708e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API3(m,p1,p2,p3)
3709e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API4(m,p1,p2,p3,p4)
3710e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API5(m,p1,p2,p3,p4,p5)
3711e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3712e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3713e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT0(m)
3714e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT1(m,p1)
3715e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT2(m,p1,p2)
3716e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT3(m,p1,p2,p3)
3717e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT4(m,p1,p2,p3,p4)
3718e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3719e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3720e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3721e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG0(m)
3722e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG1(m,p1)
3723e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG2(m,p1,p2)
3724e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG3(m,p1,p2,p3)
3725e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG4(m,p1,p2,p3,p4)
3726e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3727e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDH_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3728e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3729e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HID Device */
3730e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR0(m)
3731e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR1(m,p1)
3732e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR2(m,p1,p2)
3733e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR3(m,p1,p2,p3)
3734e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR4(m,p1,p2,p3,p4)
3735e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3736e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3737e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3738e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING0(m)
3739e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING1(m,p1)
3740e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING2(m,p1,p2)
3741e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING3(m,p1,p2,p3)
3742e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING4(m,p1,p2,p3,p4)
3743e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3744e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3745e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3746e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API0(m)
3747e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API1(m,p1)
3748e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API2(m,p1,p2)
3749e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API3(m,p1,p2,p3)
3750e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API4(m,p1,p2,p3,p4)
3751e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API5(m,p1,p2,p3,p4,p5)
3752e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3753e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3754e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT0(m)
3755e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT1(m,p1)
3756e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT2(m,p1,p2)
3757e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT3(m,p1,p2,p3)
3758e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT4(m,p1,p2,p3,p4)
3759e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3760e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3761e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3762e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG0(m)
3763e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG1(m,p1)
3764e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG2(m,p1,p2)
3765e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG3(m,p1,p2,p3)
3766e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG4(m,p1,p2,p3,p4)
3767e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3768e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HIDD_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3769e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3770e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for DUN */
3771e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3772e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR0(m)
3773e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR1(m,p1)
3774e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR2(m,p1,p2)
3775e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR3(m,p1,p2,p3)
3776e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR4(m,p1,p2,p3,p4)
3777e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3778e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3779e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3780e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING0(m)
3781e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING1(m,p1)
3782e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING2(m,p1,p2)
3783e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING3(m,p1,p2,p3)
3784e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING4(m,p1,p2,p3,p4)
3785e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3786e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3787e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3788e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API0(m)
3789e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API1(m,p1)
3790e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API2(m,p1,p2)
3791e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API3(m,p1,p2,p3)
3792e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API4(m,p1,p2,p3,p4)
3793e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API5(m,p1,p2,p3,p4,p5)
3794e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3795e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3796e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT0(m)
3797e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT1(m,p1)
3798e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT2(m,p1,p2)
3799e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT3(m,p1,p2,p3)
3800e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT4(m,p1,p2,p3,p4)
3801e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3802e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3803e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3804e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG0(m)
3805e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG1(m,p1)
3806e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG2(m,p1,p2)
3807e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG3(m,p1,p2,p3)
3808e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG4(m,p1,p2,p3,p4)
3809e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3810e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DUN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3811e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3812e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HCRP */
3813e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3814e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR0(m)
3815e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR1(m,p1)
3816e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR2(m,p1,p2)
3817e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR3(m,p1,p2,p3)
3818e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR4(m,p1,p2,p3,p4)
3819e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3820e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3821e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3822e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING0(m)
3823e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING1(m,p1)
3824e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING2(m,p1,p2)
3825e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING3(m,p1,p2,p3)
3826e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING4(m,p1,p2,p3,p4)
3827e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3828e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3829e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3830e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API0(m)
3831e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API1(m,p1)
3832e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API2(m,p1,p2)
3833e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API3(m,p1,p2,p3)
3834e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API4(m,p1,p2,p3,p4)
3835e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API5(m,p1,p2,p3,p4,p5)
3836e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3837e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3838e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT0(m)
3839e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT1(m,p1)
3840e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT2(m,p1,p2)
3841e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT3(m,p1,p2,p3)
3842e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT4(m,p1,p2,p3,p4)
3843e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3844e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3845e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3846e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG0(m)
3847e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG1(m,p1)
3848e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG2(m,p1,p2)
3849e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG3(m,p1,p2,p3)
3850e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3851e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3852e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3853e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3854e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3855e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for HCRP */
3856e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3857e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR0(m)
3858e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR1(m,p1)
3859e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR2(m,p1,p2)
3860e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR3(m,p1,p2,p3)
3861e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR4(m,p1,p2,p3,p4)
3862e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3863e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3864e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3865e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING0(m)
3866e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING1(m,p1)
3867e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING2(m,p1,p2)
3868e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING3(m,p1,p2,p3)
3869e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING4(m,p1,p2,p3,p4)
3870e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3871e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3872e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3873e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API0(m)
3874e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API1(m,p1)
3875e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API2(m,p1,p2)
3876e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API3(m,p1,p2,p3)
3877e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API4(m,p1,p2,p3,p4)
3878e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API5(m,p1,p2,p3,p4,p5)
3879e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3880e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3881e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT0(m)
3882e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT1(m,p1)
3883e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT2(m,p1,p2)
3884e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT3(m,p1,p2,p3)
3885e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT4(m,p1,p2,p3,p4)
3886e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3887e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3888e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3889e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG0(m)
3890e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG1(m,p1)
3891e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG2(m,p1,p2)
3892e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG3(m,p1,p2,p3)
3893e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG4(m,p1,p2,p3,p4)
3894e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3895e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define HCRPM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3896e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3897e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for RPC */
3898e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3899e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR0(m)
3900e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR1(m,p1)
3901e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR2(m,p1,p2)
3902e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR3(m,p1,p2,p3)
3903e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR4(m,p1,p2,p3,p4)
3904e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3905e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3906e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3907e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING0(m)
3908e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING1(m,p1)
3909e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING2(m,p1,p2)
3910e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING3(m,p1,p2,p3)
3911e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING4(m,p1,p2,p3,p4)
3912e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3913e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3914e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3915e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API0(m)
3916e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API1(m,p1)
3917e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API2(m,p1,p2)
3918e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API3(m,p1,p2,p3)
3919e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API4(m,p1,p2,p3,p4)
3920e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API5(m,p1,p2,p3,p4,p5)
3921e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3922e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3923e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT0(m)
3924e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT1(m,p1)
3925e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT2(m,p1,p2)
3926e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT3(m,p1,p2,p3)
3927e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT4(m,p1,p2,p3,p4)
3928e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3929e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3930e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3931e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG0(m)
3932e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG1(m,p1)
3933e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG2(m,p1,p2)
3934e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG3(m,p1,p2,p3)
3935e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG4(m,p1,p2,p3,p4)
3936e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3937e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define RPC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3938e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3939e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for BNEP */
3940e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3941e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR0(m)
3942e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR1(m,p1)
3943e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR2(m,p1,p2)
3944e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR3(m,p1,p2,p3)
3945e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR4(m,p1,p2,p3,p4)
3946e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
3947e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
3948e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3949e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING0(m)
3950e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING1(m,p1)
3951e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING2(m,p1,p2)
3952e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING3(m,p1,p2,p3)
3953e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING4(m,p1,p2,p3,p4)
3954e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
3955e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
3956e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3957e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API0(m)
3958e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API1(m,p1)
3959e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API2(m,p1,p2)
3960e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API3(m,p1,p2,p3)
3961e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API4(m,p1,p2,p3,p4)
3962e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API5(m,p1,p2,p3,p4,p5)
3963e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
3964e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3965e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT0(m)
3966e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT1(m,p1)
3967e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT2(m,p1,p2)
3968e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT3(m,p1,p2,p3)
3969e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT4(m,p1,p2,p3,p4)
3970e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
3971e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
3972e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3973e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG0(m)
3974e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG1(m,p1)
3975e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG2(m,p1,p2)
3976e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG3(m,p1,p2,p3)
3977e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG4(m,p1,p2,p3,p4)
3978e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
3979e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define BNEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
3980e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3981e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* hid module traces */
3982e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3983e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_0(m)
3984e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_1(m,p1)
3985e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_2(m,p1,p2)
3986e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_3(m,p1,p2,p3)
3987e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_4(m,p1,p2,p3,p4)
3988e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_5(m,p1,p2,p3,p4,p5)
3989e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_TRACE_6(m,p1,p2,p3,p4,p5,p6)
3990e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3991e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_0(m)
3992e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_1(m,p1)
3993e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_2(m,p1,p2)
3994e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_3(m,p1,p2,p3)
3995e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_4(m,p1,p2,p3,p4)
3996e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_5(m,p1,p2,p3,p4,p5)
3997e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_DEBUG_6(m,p1,p2,p3,p4,p5,p6)
3998e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
3999e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_0(m)
4000e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_1(m,p1)
4001e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_2(m,p1,p2)
4002e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_3(m,p1,p2,p3)
4003e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_4(m,p1,p2,p3,p4)
4004e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_5(m,p1,p2,p3,p4,p5)
4005e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MSKB_ERROR_6(m,p1,p2,p3,p4,p5,p6)
4006e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4007e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for PAN */
4008e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4009e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR0(m)
4010e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR1(m,p1)
4011e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR2(m,p1,p2)
4012e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR3(m,p1,p2,p3)
4013e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR4(m,p1,p2,p3,p4)
4014e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4015e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4016e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4017e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING0(m)
4018e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING1(m,p1)
4019e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING2(m,p1,p2)
4020e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING3(m,p1,p2,p3)
4021e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING4(m,p1,p2,p3,p4)
4022e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4023e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4024e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4025e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API0(m)
4026e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API1(m,p1)
4027e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API2(m,p1,p2)
4028e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API3(m,p1,p2,p3)
4029e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API4(m,p1,p2,p3,p4)
4030e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API5(m,p1,p2,p3,p4,p5)
4031e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4032e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4033e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT0(m)
4034e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT1(m,p1)
4035e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT2(m,p1,p2)
4036e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT3(m,p1,p2,p3)
4037e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT4(m,p1,p2,p3,p4)
4038e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4039e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4040e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4041e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG0(m)
4042e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG1(m,p1)
4043e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG2(m,p1,p2)
4044e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG3(m,p1,p2,p3)
4045e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG4(m,p1,p2,p3,p4)
4046e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4047e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define PAN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4048e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4049e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for SIM */
4050e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4051e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR0(m)
4052e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR1(m,p1)
4053e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR2(m,p1,p2)
4054e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR3(m,p1,p2,p3)
4055e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR4(m,p1,p2,p3,p4)
4056e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4057e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4058e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4059e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING0(m)
4060e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING1(m,p1)
4061e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING2(m,p1,p2)
4062e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING3(m,p1,p2,p3)
4063e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING4(m,p1,p2,p3,p4)
4064e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4065e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4066e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4067e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API0(m)
4068e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API1(m,p1)
4069e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API2(m,p1,p2)
4070e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API3(m,p1,p2,p3)
4071e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API4(m,p1,p2,p3,p4)
4072e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API5(m,p1,p2,p3,p4,p5)
4073e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4074e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4075e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT0(m)
4076e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT1(m,p1)
4077e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT2(m,p1,p2)
4078e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT3(m,p1,p2,p3)
4079e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT4(m,p1,p2,p3,p4)
4080e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4081e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4082e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4083e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG0(m)
4084e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG1(m,p1)
4085e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG2(m,p1,p2)
4086e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG3(m,p1,p2,p3)
4087e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4088e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4089e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4090e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4091e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the OPP profile
4092e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4093e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR0(m)
4094e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR1(m,p1)
4095e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR2(m,p1,p2)
4096e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR3(m,p1,p2,p3)
4097e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR4(m,p1,p2,p3,p4)
4098e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4099e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4100e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4101e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING0(m)
4102e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING1(m,p1)
4103e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING2(m,p1,p2)
4104e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING3(m,p1,p2,p3)
4105e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING4(m,p1,p2,p3,p4)
4106e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4107e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4108e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4109e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT0(m)
4110e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT1(m,p1)
4111e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT2(m,p1,p2)
4112e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT3(m,p1,p2,p3)
4113e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT4(m,p1,p2,p3,p4)
4114e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4115e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4116e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4117e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG0(m)
4118e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG1(m,p1)
4119e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG2(m,p1,p2)
4120e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG3(m,p1,p2,p3)
4121e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4122e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4123e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4124e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4125e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API0(m)
4126e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API1(m,p1)
4127e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API2(m,p1,p2)
4128e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API3(m,p1,p2,p3)
4129e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API4(m,p1,p2,p3,p4)
4130e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API5(m,p1,p2,p3,p4,p5)
4131e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define OPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4132e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4133e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the FTP profile
4134e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4135e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR0(m)
4136e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR1(m,p1)
4137e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR2(m,p1,p2)
4138e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR3(m,p1,p2,p3)
4139e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR4(m,p1,p2,p3,p4)
4140e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4141e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4142e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4143e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING0(m)
4144e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING1(m,p1)
4145e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING2(m,p1,p2)
4146e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING3(m,p1,p2,p3)
4147e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING4(m,p1,p2,p3,p4)
4148e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4149e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4150e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4151e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT0(m)
4152e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT1(m,p1)
4153e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT2(m,p1,p2)
4154e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT3(m,p1,p2,p3)
4155e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT4(m,p1,p2,p3,p4)
4156e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4157e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4158e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4159e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG0(m)
4160e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG1(m,p1)
4161e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG2(m,p1,p2)
4162e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG3(m,p1,p2,p3)
4163e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4164e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4165e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4166e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4167e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API0(m)
4168e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API1(m,p1)
4169e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API2(m,p1,p2)
4170e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API3(m,p1,p2,p3)
4171e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API4(m,p1,p2,p3,p4)
4172e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API5(m,p1,p2,p3,p4,p5)
4173e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define FTP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4174e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4175e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4176e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the A2DP profile
4177e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4178e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR0(m)
4179e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR1(m,p1)
4180e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR2(m,p1,p2)
4181e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR3(m,p1,p2,p3)
4182e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR4(m,p1,p2,p3,p4)
4183e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4184e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4185e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4186e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING0(m)
4187e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING1(m,p1)
4188e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING2(m,p1,p2)
4189e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING3(m,p1,p2,p3)
4190e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING4(m,p1,p2,p3,p4)
4191e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4192e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4193e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4194e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT0(m)
4195e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT1(m,p1)
4196e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT2(m,p1,p2)
4197e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT3(m,p1,p2,p3)
4198e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT4(m,p1,p2,p3,p4)
4199e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4200e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4201e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4202e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG0(m)
4203e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG1(m,p1)
4204e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG2(m,p1,p2)
4205e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG3(m,p1,p2,p3)
4206e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG4(m,p1,p2,p3,p4)
4207e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4208e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4209e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4210e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API0(m)
4211e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API1(m,p1)
4212e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API2(m,p1,p2)
4213e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API3(m,p1,p2,p3)
4214e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API4(m,p1,p2,p3,p4)
4215e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API5(m,p1,p2,p3,p4,p5)
4216e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define A2D_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4217e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4218e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the VDP profile
4219e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4220e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR0(m)
4221e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR1(m,p1)
4222e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR2(m,p1,p2)
4223e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR3(m,p1,p2,p3)
4224e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR4(m,p1,p2,p3,p4)
4225e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4226e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4227e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4228e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING0(m)
4229e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING1(m,p1)
4230e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING2(m,p1,p2)
4231e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING3(m,p1,p2,p3)
4232e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING4(m,p1,p2,p3,p4)
4233e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4234e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4235e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4236e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT0(m)
4237e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT1(m,p1)
4238e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT2(m,p1,p2)
4239e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT3(m,p1,p2,p3)
4240e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT4(m,p1,p2,p3,p4)
4241e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4242e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4243e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4244e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG0(m)
4245e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG1(m,p1)
4246e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG2(m,p1,p2)
4247e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG3(m,p1,p2,p3)
4248e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4249e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4250e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4251e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4252e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API0(m)
4253e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API1(m,p1)
4254e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API2(m,p1,p2)
4255e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API3(m,p1,p2,p3)
4256e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API4(m,p1,p2,p3,p4)
4257e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API5(m,p1,p2,p3,p4,p5)
4258e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define VDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4259e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4260e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4261e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LM unit
4262e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4263e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR0(m)
4264e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR1(m,p1)
4265e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR2(m,p1,p2)
4266e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR3(m,p1,p2,p3)
4267e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR4(m,p1,p2,p3,p4)
4268e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4269e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4270e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4271e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING0(m)
4272e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING1(m,p1)
4273e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING2(m,p1,p2)
4274e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING3(m,p1,p2,p3)
4275e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING4(m,p1,p2,p3,p4)
4276e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4277e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4278e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4279e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT0(m)
4280e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT1(m,p1)
4281e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT2(m,p1,p2)
4282e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT3(m,p1,p2,p3)
4283e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT4(m,p1,p2,p3,p4)
4284e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4285e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4286e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4287e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG0(m)
4288e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG1(m,p1)
4289e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG2(m,p1,p2)
4290e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG3(m,p1,p2,p3)
4291e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4292e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4293e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4294e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4295e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the LC unit
4296e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4297e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR0(m)
4298e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR1(m,p1)
4299e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR2(m,p1,p2)
4300e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR3(m,p1,p2,p3)
4301e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR4(m,p1,p2,p3,p4)
4302e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4303e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4304e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4305e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING0(m)
4306e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING1(m,p1)
4307e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING2(m,p1,p2)
4308e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING3(m,p1,p2,p3)
4309e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING4(m,p1,p2,p3,p4)
4310e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4311e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4312e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4313e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT0(m)
4314e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT1(m,p1)
4315e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT2(m,p1,p2)
4316e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT3(m,p1,p2,p3)
4317e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT4(m,p1,p2,p3,p4)
4318e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4319e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4320e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4321e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG0(m)
4322e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG1(m,p1)
4323e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG2(m,p1,p2)
4324e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG3(m,p1,p2,p3)
4325e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG4(m,p1,p2,p3,p4)
4326e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4327e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define LC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4328e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4329e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR0(m)
4330e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR1(m,p1)
4331e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR2(m,p1,p2)
4332e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR3(m,p1,p2,p3)
4333e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR4(m,p1,p2,p3,p4)
4334e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4335e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4336e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4337e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING0(m)
4338e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING1(m,p1)
4339e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING2(m,p1,p2)
4340e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING3(m,p1,p2,p3)
4341e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING4(m,p1,p2,p3,p4)
4342e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4343e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4344e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4345e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT0(m)
4346e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT1(m,p1)
4347e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT2(m,p1,p2)
4348e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT3(m,p1,p2,p3)
4349e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT4(m,p1,p2,p3,p4)
4350e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4351e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4352e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4353e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG0(m)
4354e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG1(m,p1)
4355e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG2(m,p1,p2)
4356e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG3(m,p1,p2,p3)
4357e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG4(m,p1,p2,p3,p4)
4358e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4359e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SDA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4360e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4361e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* AVDTP
4362e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4363e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR0(m)
4364e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR1(m,p1)
4365e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR2(m,p1,p2)
4366e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR3(m,p1,p2,p3)
4367e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR4(m,p1,p2,p3,p4)
4368e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4369e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4370e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4371e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING0(m)
4372e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING1(m,p1)
4373e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING2(m,p1,p2)
4374e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING3(m,p1,p2,p3)
4375e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING4(m,p1,p2,p3,p4)
4376e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4377e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4378e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4379e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT0(m)
4380e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT1(m,p1)
4381e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT2(m,p1,p2)
4382e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT3(m,p1,p2,p3)
4383e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT4(m,p1,p2,p3,p4)
4384e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4385e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4386e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4387e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG0(m)
4388e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG1(m,p1)
4389e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG2(m,p1,p2)
4390e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG3(m,p1,p2,p3)
4391e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG4(m,p1,p2,p3,p4)
4392e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4393e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4394e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4395e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API0(m)
4396e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API1(m,p1)
4397e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API2(m,p1,p2)
4398e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API3(m,p1,p2,p3)
4399e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API4(m,p1,p2,p3,p4)
4400e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API5(m,p1,p2,p3,p4,p5)
4401e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVDT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4402e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4403e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AVCTP protocol
4404e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4405e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR0(m)
4406e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR1(m,p1)
4407e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR2(m,p1,p2)
4408e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR3(m,p1,p2,p3)
4409e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR4(m,p1,p2,p3,p4)
4410e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4411e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4412e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4413e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING0(m)
4414e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING1(m,p1)
4415e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING2(m,p1,p2)
4416e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING3(m,p1,p2,p3)
4417e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING4(m,p1,p2,p3,p4)
4418e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4419e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4420e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4421e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT0(m)
4422e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT1(m,p1)
4423e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT2(m,p1,p2)
4424e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT3(m,p1,p2,p3)
4425e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT4(m,p1,p2,p3,p4)
4426e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4427e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4428e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4429e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG0(m)
4430e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG1(m,p1)
4431e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG2(m,p1,p2)
4432e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG3(m,p1,p2,p3)
4433e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG4(m,p1,p2,p3,p4)
4434e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4435e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4436e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4437e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API0(m)
4438e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API1(m,p1)
4439e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API2(m,p1,p2)
4440e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API3(m,p1,p2,p3)
4441e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API4(m,p1,p2,p3,p4)
4442e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API5(m,p1,p2,p3,p4,p5)
4443e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVCT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4444e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4445e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4446e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AVRCP profile
4447e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4448e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR0(m)
4449e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR1(m,p1)
4450e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR2(m,p1,p2)
4451e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR3(m,p1,p2,p3)
4452e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR4(m,p1,p2,p3,p4)
4453e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4454e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4455e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4456e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING0(m)
4457e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING1(m,p1)
4458e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING2(m,p1,p2)
4459e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING3(m,p1,p2,p3)
4460e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING4(m,p1,p2,p3,p4)
4461e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4462e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4463e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4464e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT0(m)
4465e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT1(m,p1)
4466e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT2(m,p1,p2)
4467e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT3(m,p1,p2,p3)
4468e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT4(m,p1,p2,p3,p4)
4469e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4470e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4471e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4472e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG0(m)
4473e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG1(m,p1)
4474e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG2(m,p1,p2)
4475e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG3(m,p1,p2,p3)
4476e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG4(m,p1,p2,p3,p4)
4477e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4478e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4479e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4480e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API0(m)
4481e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API1(m,p1)
4482e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API2(m,p1,p2)
4483e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API3(m,p1,p2,p3)
4484e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API4(m,p1,p2,p3,p4)
4485e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API5(m,p1,p2,p3,p4,p5)
4486e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AVRC_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4487e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4488e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* MCAP
4489e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4490e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR0(m)
4491e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR1(m,p1)
4492e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR2(m,p1,p2)
4493e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR3(m,p1,p2,p3)
4494e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR4(m,p1,p2,p3,p4)
4495e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4496e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4497e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4498e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING0(m)
4499e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING1(m,p1)
4500e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING2(m,p1,p2)
4501e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING3(m,p1,p2,p3)
4502e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING4(m,p1,p2,p3,p4)
4503e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4504e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4505e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4506e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT0(m)
4507e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT1(m,p1)
4508e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT2(m,p1,p2)
4509e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT3(m,p1,p2,p3)
4510e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT4(m,p1,p2,p3,p4)
4511e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4512e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4513e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4514e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG0(m)
4515e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG1(m,p1)
4516e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG2(m,p1,p2)
4517e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG3(m,p1,p2,p3)
4518e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG4(m,p1,p2,p3,p4)
4519e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4520e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4521e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4522e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API0(m)
4523e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API1(m,p1)
4524e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API2(m,p1,p2)
4525e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API3(m,p1,p2,p3)
4526e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API4(m,p1,p2,p3,p4)
4527e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API5(m,p1,p2,p3,p4,p5)
4528e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define MCA_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4529e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4530e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the AMP unit
4531e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4532e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR0(m)
4533e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR1(m,p1)
4534e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR2(m,p1,p2)
4535e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR3(m,p1,p2,p3)
4536e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR4(m,p1,p2,p3,p4)
4537e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4538e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4539e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4540e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING0(m)
4541e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING1(m,p1)
4542e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING2(m,p1,p2)
4543e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING3(m,p1,p2,p3)
4544e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING4(m,p1,p2,p3,p4)
4545e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4546e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4547e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4548e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API0(m)
4549e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API1(m,p1)
4550e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API2(m,p1,p2)
4551e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API3(m,p1,p2,p3)
4552e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API4(m,p1,p2,p3,p4)
4553e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API5(m,p1,p2,p3,p4,p5)
4554e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4555e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4556e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT0(m)
4557e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT1(m,p1)
4558e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT2(m,p1,p2)
4559e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT3(m,p1,p2,p3)
4560e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT4(m,p1,p2,p3,p4)
4561e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4562e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4563e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4564e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG0(m)
4565e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG1(m,p1)
4566e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG2(m,p1,p2)
4567e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG3(m,p1,p2,p3)
4568e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4569e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4570e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define AMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4571e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4572e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the GATT
4573e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4574e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR0(m)
4575e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR1(m,p1)
4576e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR2(m,p1,p2)
4577e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR3(m,p1,p2,p3)
4578e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR4(m,p1,p2,p3,p4)
4579e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4580e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4581e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4582e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING0(m)
4583e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING1(m,p1)
4584e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING2(m,p1,p2)
4585e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING3(m,p1,p2,p3)
4586e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING4(m,p1,p2,p3,p4)
4587e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4588e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4589e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4590e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API0(m)
4591e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API1(m,p1)
4592e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API2(m,p1,p2)
4593e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API3(m,p1,p2,p3)
4594e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API4(m,p1,p2,p3,p4)
4595e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API5(m,p1,p2,p3,p4,p5)
4596e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4597e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4598e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT0(m)
4599e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT1(m,p1)
4600e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT2(m,p1,p2)
4601e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT3(m,p1,p2,p3)
4602e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT4(m,p1,p2,p3,p4)
4603e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4604e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4605e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4606e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG0(m)
4607e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG1(m,p1)
4608e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG2(m,p1,p2)
4609e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG3(m,p1,p2,p3)
4610e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG4(m,p1,p2,p3,p4)
4611e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4612e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define GATT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4613e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4614e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Define tracing for the SMP unit
4615e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4616e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR0(m)
4617e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR1(m,p1)
4618e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR2(m,p1,p2)
4619e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR3(m,p1,p2,p3)
4620e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR4(m,p1,p2,p3,p4)
4621e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4622e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4623e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4624e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING0(m)
4625e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING1(m,p1)
4626e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING2(m,p1,p2)
4627e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING3(m,p1,p2,p3)
4628e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING4(m,p1,p2,p3,p4)
4629e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4630e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4631e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4632e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API0(m)
4633e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API1(m,p1)
4634e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API2(m,p1,p2)
4635e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API3(m,p1,p2,p3)
4636e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API4(m,p1,p2,p3,p4)
4637e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API5(m,p1,p2,p3,p4,p5)
4638e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4639e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4640e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT0(m)
4641e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT1(m,p1)
4642e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT2(m,p1,p2)
4643e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT3(m,p1,p2,p3)
4644e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT4(m,p1,p2,p3,p4)
4645e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4646e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4647e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4648e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG0(m)
4649e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG1(m,p1)
4650e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG2(m,p1,p2)
4651e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG3(m,p1,p2,p3)
4652e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG4(m,p1,p2,p3,p4)
4653e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4654e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4655e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4656e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
4657e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4658e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if (BT_USE_TRACES == TRUE || BT_TRACE_APPL == TRUE)
4659e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4660e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for application */
4661e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR0(m)                    {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, (m));}
4662e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR1(m,p1)                 {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4663e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
4664e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR2(m,p1,p2)              {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4665e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
4666e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR3(m,p1,p2,p3)           {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4667e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
4668e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR4(m,p1,p2,p3,p4)        {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4669e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
4670e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR5(m,p1,p2,p3,p4,p5)     {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4671e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
4672e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)  {if (appl_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \
4673e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
4674e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4675e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING0(m)                  {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, (m));}
4676e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING1(m,p1)               {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4677e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
4678e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING2(m,p1,p2)            {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4679e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
4680e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING3(m,p1,p2,p3)         {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4681e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
4682e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING4(m,p1,p2,p3,p4)      {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4683e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
4684e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING5(m,p1,p2,p3,p4,p5)   {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4685e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
4686e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (appl_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \
4687e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
4688e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4689e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API0(m)                      {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, (m));}
4690e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API1(m,p1)                   {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4691e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
4692e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API2(m,p1,p2)                {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4693e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
4694e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API3(m,p1,p2,p3)             {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4695e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
4696e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API4(m,p1,p2,p3,p4)          {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4697e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
4698e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API5(m,p1,p2,p3,p4,p5)       {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4699e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
4700e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API6(m,p1,p2,p3,p4,p5,p6)    {if (appl_trace_level >= BT_TRACE_LEVEL_API) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \
4701e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
4702e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4703e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT0(m)                    {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, (m));}
4704e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT1(m,p1)                 {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4705e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
4706e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT2(m,p1,p2)              {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4707e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
4708e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT3(m,p1,p2,p3)           {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4709e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
4710e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT4(m,p1,p2,p3,p4)        {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4711e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
4712e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT5(m,p1,p2,p3,p4,p5)     {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4713e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
4714e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)  {if (appl_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \
4715e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
4716e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4717e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG0(m)                    {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m));}
4718e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG1(m,p1)                 {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4719e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1));}
4720e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG2(m,p1,p2)              {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4721e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2));}
4722e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG3(m,p1,p2,p3)           {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4723e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));}
4724e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG4(m,p1,p2,p3,p4)        {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4725e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));}
4726e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)     {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4727e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));}
4728e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)  {if (appl_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \
4729e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project                                                        (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));}
4730e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else
4731e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* define traces for Application */
4732e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4733e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR0(m)
4734e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR1(m,p1)
4735e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR2(m,p1,p2)
4736e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR3(m,p1,p2,p3)
4737e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR4(m,p1,p2,p3,p4)
4738e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4739e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4740e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4741e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING0(m)
4742e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING1(m,p1)
4743e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING2(m,p1,p2)
4744e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING3(m,p1,p2,p3)
4745e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING4(m,p1,p2,p3,p4)
4746e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4747e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4748e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4749e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API0(m)
4750e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API1(m,p1)
4751e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API2(m,p1,p2)
4752e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API3(m,p1,p2,p3)
4753e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API4(m,p1,p2,p3,p4)
4754e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API5(m,p1,p2,p3,p4,p5)
4755e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_API6(m,p1,p2,p3,p4,p5,p6)
4756e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4757e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT0(m)
4758e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT1(m,p1)
4759e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT2(m,p1,p2)
4760e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT3(m,p1,p2,p3)
4761e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT4(m,p1,p2,p3,p4)
4762e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT5(m,p1,p2,p3,p4,p5)
4763e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6)
4764e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4765e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG0(m)
4766e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG1(m,p1)
4767e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG2(m,p1,p2)
4768e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG3(m,p1,p2,p3)
4769e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG4(m,p1,p2,p3,p4)
4770e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4771e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define APPL_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4772e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4773e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
4774e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4775e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if ((MMI_INCLUDED == TRUE) && (!defined(HID_MSKB_INCLUDED) || (HID_MSKB_INCLUDED == FALSE)))
4776e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* UI for sample applications */
4777e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_0(m)                            MMI_Echo(m)
4778e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_1(m,p1)                         MMI_Echo(m,p1)
4779e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_2(m,p1,p2)                      MMI_Echo(m,p1,p2)
4780e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_3(m,p1,p2,p3)                   MMI_Echo(m,p1,p2,p3)
4781e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_4(m,p1,p2,p3,p4)                MMI_Echo(m,p1,p2,p3,p4)
4782e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_5(m,p1,p2,p3,p4,p5)             MMI_Echo(m,p1,p2,p3,p4,p5)
4783e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_6(m,p1,p2,p3,p4,p5,p6)          MMI_Echo(m,p1,p2,p3,p4,p5,p6)
4784e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else
4785e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_0(m)
4786e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_1(m,p1)
4787e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_2(m,p1,p2)
4788e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_3(m,p1,p2,p3)
4789e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_4(m,p1,p2,p3,p4)
4790e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_5(m,p1,p2,p3,p4,p5)
4791e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define SAP_TRACE_6(m,p1,p2,p3,p4,p5,p6)
4792e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4793e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif  /* End of MMI_INCLUDED */
4794e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#if defined(DRV_DEBUG_MSG) && (DRV_DEBUG_MSG == TRUE)
4795e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Driver Trace macros
4796e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4797e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING0(m)                      APPL_TRACE_WARNING0(m)
4798e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING1(m,p1)                   APPL_TRACE_WARNING1(m,p1)
4799e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING2(m,p1,p2)                APPL_TRACE_WARNING2(m,p1,p2)
4800e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING3(m,p1,p2,p3)             APPL_TRACE_WARNING3(m,p1,p2,p3)
4801e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING4(m,p1,p2,p3,p4)          APPL_TRACE_WARNING4(m,p1,p2,p3,p4)
4802e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING5(m,p1,p2,p3,p4,p5)       APPL_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4803e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)    APPL_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4804e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#else
4805e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Driver Trace macros
4806e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4807e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING0(m)
4808e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING1(m,p1)
4809e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING2(m,p1,p2)
4810e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING3(m,p1,p2,p3)
4811e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING4(m,p1,p2,p3,p4)
4812e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING5(m,p1,p2,p3,p4,p5)
4813e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6)
4814e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif
4815e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4816e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR0(m)                      APPL_TRACE_ERROR0(m)
4817e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR1(m,p1)                   APPL_TRACE_ERROR1(m,p1)
4818e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR2(m,p1,p2)                APPL_TRACE_ERROR2(m,p1,p2)
4819e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR3(m,p1,p2,p3)             APPL_TRACE_ERROR3(m,p1,p2,p3)
4820e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR4(m,p1,p2,p3,p4)          APPL_TRACE_ERROR4(m,p1,p2,p3,p4)
4821e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR5(m,p1,p2,p3,p4,p5)       APPL_TRACE_ERROR5(m,p1,p2,p3,p4,p5)
4822e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)    APPL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6)
4823e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4824e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project/* Driver Trace macros
4825e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project*/
4826e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG0(m)                    APPL_TRACE_DEBUG0(m)
4827e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG1(m,p1)                 APPL_TRACE_DEBUG1(m,p1)
4828e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG2(m,p1,p2)              APPL_TRACE_DEBUG2(m,p1,p2)
4829e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG3(m,p1,p2,p3)           APPL_TRACE_DEBUG3(m,p1,p2,p3)
4830e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG4(m,p1,p2,p3,p4)        APPL_TRACE_DEBUG4(m,p1,p2,p3,p4)
4831e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)     APPL_TRACE_DEBUG5(m,p1,p2,p3,p4,p5)
4832e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#define DRV_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)  APPL_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6)
4833e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4834e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4835e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project#endif /* BT_TRACE_H */
4836e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4837e9df6ba5a8fcccf306a80b1670b423be8fe7746The Android Open Source Project
4838