1 /****************************************************************************** 2 * 3 * Copyright (C) 1999-2012 Broadcom Corporation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ******************************************************************************/ 18 19 /****************************************************************************** 20 * 21 * This file contains definitions for implementing the 22 * diagnostic trace message service. 23 * 24 ******************************************************************************/ 25 26 #ifndef BT_TRACE_H 27 #define BT_TRACE_H 28 29 #ifndef BTTRC_INCLUDED 30 #define BTTRC_INCLUDED FALSE 31 #endif 32 #ifndef BTTRC_PARSER_INCLUDED 33 #define BTTRC_PARSER_INCLUDED FALSE 34 #endif 35 #ifndef MAX_TRACE_RAM_SIZE 36 #define MAX_TRACE_RAM_SIZE 10000 37 #endif 38 39 /* BTE tracing IDs for debug purposes */ 40 /* LayerIDs for stack */ 41 #define BTTRC_ID_STK_GKI 1 42 #define BTTRC_ID_STK_BTU 2 43 #define BTTRC_ID_STK_HCI 3 44 #define BTTRC_ID_STK_L2CAP 4 45 #define BTTRC_ID_STK_RFCM_MX 5 46 #define BTTRC_ID_STK_RFCM_PRT 6 47 #define BTTRC_ID_STK_OBEX_C 7 48 #define BTTRC_ID_STK_OBEX_S 8 49 #define BTTRC_ID_STK_AVCT 9 50 #define BTTRC_ID_STK_AVDT 10 51 #define BTTRC_ID_STK_AVRC 11 52 #define BTTRC_ID_STK_BIC 12 53 #define BTTRC_ID_STK_BIS 13 54 #define BTTRC_ID_STK_BNEP 14 55 #define BTTRC_ID_STK_BPP 15 56 #define BTTRC_ID_STK_BTM_ACL 16 57 #define BTTRC_ID_STK_BTM_PM 17 58 #define BTTRC_ID_STK_BTM_DEV_CTRL 18 59 #define BTTRC_ID_STK_BTM_SVC_DSC 19 60 #define BTTRC_ID_STK_BTM_INQ 20 61 #define BTTRC_ID_STK_BTM_SCO 21 62 #define BTTRC_ID_STK_BTM_SEC 22 63 #define BTTRC_ID_STK_DUN 23 64 #define BTTRC_ID_STK_HID 24 65 #define BTTRC_ID_STK_HSP2 25 66 #define BTTRC_ID_STK_CTP 26 67 #define BTTRC_ID_STK_FTC 27 68 #define BTTRC_ID_STK_FTS 28 69 #define BTTRC_ID_STK_GAP 29 70 #define BTTRC_ID_STK_GOEP 30 71 #define BTTRC_ID_STK_HCRP 31 72 #define BTTRC_ID_STK_ICP 32 73 #define BTTRC_ID_STK_OPC 33 74 #define BTTRC_ID_STK_OPS 34 75 #define BTTRC_ID_STK_PAN 35 76 #define BTTRC_ID_STK_SAP 36 77 #define BTTRC_ID_STK_SDP 37 78 #define BTTRC_ID_STK_SLIP 38 79 #define BTTRC_ID_STK_SPP 39 80 #define BTTRC_ID_STK_TCS 40 81 #define BTTRC_ID_STK_VDP 41 82 #define BTTRC_ID_STK_MCAP 42 83 #define BTTRC_ID_STK_GATT 43 84 #define BTTRC_ID_STK_SMP 44 85 #define BTTRC_ID_STK_NFC 45 86 #define BTTRC_ID_STK_NCI 46 87 #define BTTRC_ID_STK_IDEP 47 88 #define BTTRC_ID_STK_NDEP 48 89 #define BTTRC_ID_STK_LLCP 49 90 #define BTTRC_ID_STK_RW 50 91 #define BTTRC_ID_STK_CE 51 92 #define BTTRC_ID_STK_SNEP 52 93 #define BTTRC_ID_STK_NDEF 53 94 95 96 /* LayerIDs for BTA */ 97 #define BTTRC_ID_BTA_ACC 55 /* Advanced Camera Client */ 98 #define BTTRC_ID_BTA_AG 56 /* audio gateway */ 99 #define BTTRC_ID_BTA_AV 57 /* Advanced audio */ 100 #define BTTRC_ID_BTA_BIC 58 /* Basic Imaging Client */ 101 #define BTTRC_ID_BTA_BIS 59 /* Basic Imaging Server */ 102 #define BTTRC_ID_BTA_BP 60 /* Basic Printing Client */ 103 #define BTTRC_ID_BTA_CG 61 104 #define BTTRC_ID_BTA_CT 62 /* cordless telephony terminal */ 105 #define BTTRC_ID_BTA_DG 63 /* data gateway */ 106 #define BTTRC_ID_BTA_DM 64 /* device manager */ 107 #define BTTRC_ID_BTA_DM_SRCH 65 /* device manager search */ 108 #define BTTRC_ID_BTA_DM_SEC 66 /* device manager security */ 109 #define BTTRC_ID_BTA_FM 67 110 #define BTTRC_ID_BTA_FTC 68 /* file transfer client */ 111 #define BTTRC_ID_BTA_FTS 69 /* file transfer server */ 112 #define BTTRC_ID_BTA_HIDH 70 113 #define BTTRC_ID_BTA_HIDD 71 114 #define BTTRC_ID_BTA_JV 72 115 #define BTTRC_ID_BTA_OPC 73 /* object push client */ 116 #define BTTRC_ID_BTA_OPS 74 /* object push server */ 117 #define BTTRC_ID_BTA_PAN 75 /* Personal Area Networking */ 118 #define BTTRC_ID_BTA_PR 76 /* Printer client */ 119 #define BTTRC_ID_BTA_SC 77 /* SIM Card Access server */ 120 #define BTTRC_ID_BTA_SS 78 /* synchronization server */ 121 #define BTTRC_ID_BTA_SYS 79 /* system manager */ 122 #define BTTRC_ID_AVDT_SCB 80 /* avdt scb */ 123 #define BTTRC_ID_AVDT_CCB 81 /* avdt ccb */ 124 125 // btla-specific ++ 126 /* LayerIDs added for BTL-A. Probably should modify bte_logmsg.c in future. */ 127 #define BTTRC_ID_STK_RFCOMM 82 128 #define BTTRC_ID_STK_RFCOMM_DATA 83 129 #define BTTRC_ID_STK_OBEX 84 130 #define BTTRC_ID_STK_A2D 85 131 #define BTTRC_ID_STK_BIP 86 132 133 /* LayerIDs for BT APP */ 134 #define BTTRC_ID_BTAPP 87 135 #define BTTRC_ID_BT_PROTOCOL 88 /* this is a temporary solution to allow dynamic 136 enable/disable of BT_PROTOCOL_TRACE */ 137 #define BTTRC_ID_MAX_ID BTTRC_ID_BT_PROTOCOL 138 // btla-specific -- 139 #define BTTRC_ID_ALL_LAYERS 0xFF /* all trace layers */ 140 typedef UINT8 tBTTRC_LAYER_ID; 141 142 /* Trace type definitions. Note that these are mutually exclusive in a trace. This 143 means that any trace can be either error,warning,api,event or dbg */ 144 #define BTTRC_TYPE_ERROR 0x01 /* Traces for error situation */ 145 #define BTTRC_TYPE_WARNING 0x02 /* Traces for warning situation */ 146 #define BTTRC_TYPE_API 0x04 /* Traces for API */ 147 #define BTTRC_TYPE_EVENT 0x08 /* Traces for EVENT */ 148 #define BTTRC_TYPE_ACTION 0x10 /* Traces for Action functions */ 149 #define BTTRC_TYPE_DBG 0x20 /* Traces for debugging purpose */ 150 typedef UINT8 tBTTRC_TYPE; 151 152 /* Masks to identify the stack that originated the trace */ 153 #define BTTRC_TRACE_LITE 0x80 /* MM Lite stack */ 154 #define BTTRC_TRACE_EMBD 0x40 /* Embedded host stack */ 155 156 /* Parameter datatypes used in Trace APIs */ 157 #define BTTRC_PARAM_UINT8 1 158 #define BTTRC_PARAM_UINT16 2 159 #define BTTRC_PARAM_UINT32 3 160 typedef UINT8 tBTTRC_PARAM_TYPE; 161 162 /* Special token definitions */ 163 #define BTTRC_TOKEN_SM_STATE 0xFFFF /* Token indicating the State of a State m/c */ 164 165 // btla-specific ++ 166 typedef struct { 167 tBTTRC_LAYER_ID layer_id; 168 tBTTRC_TYPE type; /* TODO: use tBTTRC_TYPE instead of "classical level 0-5" */ 169 } tBTTRC_LEVEL; 170 171 typedef UINT8 (tBTTRC_SET_TRACE_LEVEL)( UINT8 ); 172 173 typedef struct { 174 const tBTTRC_LAYER_ID layer_id_start; 175 const tBTTRC_LAYER_ID layer_id_end; 176 tBTTRC_SET_TRACE_LEVEL *p_f; 177 const char *trc_name; 178 UINT8 trace_level; 179 } tBTTRC_FUNC_MAP; 180 181 extern tBTTRC_FUNC_MAP bttrc_set_level_map[]; 182 extern const UINT16 bttrc_map_size; 183 extern BT_API tBTTRC_LEVEL * BTA_SysSetTraceLevel( tBTTRC_LEVEL * p_levels ); 184 // btla-specific -- 185 186 187 #ifdef __cplusplus 188 extern "C" { 189 #endif 190 191 /* External declaration for appl_trace_level here to avoid to add the declaration in all the files using APPL_TRACExxx macros */ 192 extern UINT8 appl_trace_level ; 193 194 // btla-specific ++ 195 EXPORT_API extern void BTE_InitTraceLevels( void ); 196 // btla-specific -- 197 198 /* Prototype for message logging function. */ 199 EXPORT_API extern void LogMsg (UINT32 trace_set_mask, const char *fmt_str, ...); 200 extern void LogMsg_0 (UINT32 trace_set_mask, const char *p_str); 201 extern void LogMsg_1 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1); 202 extern void LogMsg_2 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2); 203 extern void LogMsg_3 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, 204 UINT32 p3); 205 extern void LogMsg_4 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, 206 UINT32 p3, UINT32 p4); 207 extern void LogMsg_5 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, 208 UINT32 p3, UINT32 p4, UINT32 p5); 209 extern void LogMsg_6 (UINT32 trace_set_mask, const char *fmt_str, UINT32 p1, UINT32 p2, 210 UINT32 p3, UINT32 p4, UINT32 p5, UINT32 p6); 211 212 /* Prototype for stack tracing function. */ 213 EXPORT_API extern void BTTRC_StackTrace0(tBTTRC_LAYER_ID layer_id, 214 tBTTRC_TYPE type, 215 UINT16 token); 216 EXPORT_API extern void BTTRC_StackTrace1(tBTTRC_LAYER_ID layer_id, 217 tBTTRC_TYPE type, 218 UINT16 token, 219 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val); 220 EXPORT_API extern void BTTRC_StackTrace2(tBTTRC_LAYER_ID layer_id, 221 tBTTRC_TYPE type, 222 UINT16 token, 223 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val, 224 tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val); 225 EXPORT_API extern void BTTRC_StackTrace3(tBTTRC_LAYER_ID layer_id, 226 tBTTRC_TYPE type, 227 UINT16 token, 228 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val, 229 tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val, 230 tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val); 231 EXPORT_API extern void BTTRC_StackTrace4(tBTTRC_LAYER_ID layer_id, 232 tBTTRC_TYPE type, 233 UINT16 token, 234 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val, 235 tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val, 236 tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val, 237 tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val); 238 EXPORT_API extern void BTTRC_StackTrace5(tBTTRC_LAYER_ID layer_id, 239 tBTTRC_TYPE type, 240 UINT16 token, 241 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val, 242 tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val, 243 tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val, 244 tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val, 245 tBTTRC_PARAM_TYPE p5_type, UINT32 p5_val); 246 EXPORT_API extern void BTTRC_StackTrace6(tBTTRC_LAYER_ID layer_id, 247 tBTTRC_TYPE type, 248 UINT16 token, 249 tBTTRC_PARAM_TYPE p1_type, UINT32 p1_val, 250 tBTTRC_PARAM_TYPE p2_type, UINT32 p2_val, 251 tBTTRC_PARAM_TYPE p3_type, UINT32 p3_val, 252 tBTTRC_PARAM_TYPE p4_type, UINT32 p4_val, 253 tBTTRC_PARAM_TYPE p5_type, UINT32 p5_val, 254 tBTTRC_PARAM_TYPE p6_type, UINT32 p6_val); 255 256 // btla-specific ++ 257 /* p_levels must be a 0 terminated list ! */ 258 //EXPORT_API extern tBTTRC_LEVEL * BTA_SysSetTraceLevel( tBTTRC_LEVEL * p_levels ); 259 // btla-specific -- 260 261 #ifdef __cplusplus 262 } 263 #endif 264 265 /****************************************************************************** 266 ** 267 ** Trace configurable parameters 268 ** 269 ******************************************************************************/ 270 271 /* Enables or disables verbose trace information. */ 272 #ifndef BT_TRACE_VERBOSE 273 #define BT_TRACE_VERBOSE FALSE 274 #endif 275 276 /* Enables or disables all trace messages. */ 277 #ifndef BT_USE_TRACES 278 #define BT_USE_TRACES TRUE 279 #endif 280 281 282 /****************************************************************************** 283 ** 284 ** Trace Levels 285 ** 286 ** The following values may be used for different levels: 287 ** BT_TRACE_LEVEL_NONE 0 * No trace messages to be generated 288 ** BT_TRACE_LEVEL_ERROR 1 * Error condition trace messages 289 ** BT_TRACE_LEVEL_WARNING 2 * Warning condition trace messages 290 ** BT_TRACE_LEVEL_API 3 * API traces 291 ** BT_TRACE_LEVEL_EVENT 4 * Debug messages for events 292 ** BT_TRACE_LEVEL_DEBUG 5 * Debug messages (general) 293 ******************************************************************************/ 294 295 // btla-specific ++ 296 /* Core Stack default trace levels */ 297 #ifndef HCI_INITIAL_TRACE_LEVEL 298 #define HCI_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 299 #endif 300 301 #ifndef BTM_INITIAL_TRACE_LEVEL 302 #define BTM_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 303 #endif 304 305 #ifndef L2CAP_INITIAL_TRACE_LEVEL 306 #define L2CAP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 307 #endif 308 309 #ifndef LLCP_INITIAL_TRACE_LEVEL 310 #define LLCP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 311 #endif 312 313 #ifndef AMP_INITIAL_TRACE_LEVEL 314 #define AMP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 315 #endif 316 317 #ifndef RFCOMM_INITIAL_TRACE_LEVEL 318 #define RFCOMM_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 319 #endif 320 321 #ifndef OBX_INITIAL_TRACE_LEVEL 322 #define OBX_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 323 #endif 324 325 #ifndef SDP_INITIAL_TRACE_LEVEL 326 #define SDP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 327 #endif 328 329 #ifndef TCS_INITIAL_TRACE_LEVEL 330 #define TCS_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 331 #endif 332 333 /* Profile default trace levels */ 334 #ifndef DUN_INITIAL_TRACE_LEVEL 335 #define DUN_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 336 #endif 337 338 #ifndef GAP_INITIAL_TRACE_LEVEL 339 #define GAP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 340 #endif 341 342 #ifndef GOEP_INITIAL_TRACE_LEVEL 343 #define GOEP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 344 #endif 345 346 #ifndef HSP2_INITIAL_TRACE_LEVEL 347 #define HSP2_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 348 #endif 349 350 #ifndef SPP_INITIAL_TRACE_LEVEL 351 #define SPP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 352 #endif 353 354 #ifndef ICP_INITIAL_TRACE_LEVEL 355 #define ICP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 356 #endif 357 358 #ifndef CTP_INITIAL_TRACE_LEVEL 359 #define CTP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 360 #endif 361 362 #ifndef HCRP_INITIAL_TRACE_LEVEL 363 #define HCRP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 364 #endif 365 366 #ifndef HCRPM_INITIAL_TRACE_LEVEL 367 #define HCRPM_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 368 #endif 369 370 #ifndef BPP_INITIAL_TRACE_LEVEL 371 #define BPP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 372 #endif 373 374 #ifndef BIP_INITIAL_TRACE_LEVEL 375 #define BIP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 376 #endif 377 378 #ifndef BNEP_INITIAL_TRACE_LEVEL 379 #define BNEP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 380 #endif 381 382 #ifndef PAN_INITIAL_TRACE_LEVEL 383 #define PAN_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 384 #endif 385 386 #ifndef SAP_INITIAL_TRACE_LEVEL 387 #define SAP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 388 #endif 389 390 #ifndef FTP_INITIAL_TRACE_LEVEL 391 #define FTP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 392 #endif 393 394 #ifndef OPP_INITIAL_TRACE_LEVEL 395 #define OPP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 396 #endif 397 398 #ifndef HFP_INITIAL_TRACE_LEVEL 399 #define HFP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 400 #endif 401 402 #ifndef PAP_INITIAL_TRACE_LEVEL 403 #define PAP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 404 #endif 405 406 #ifndef A2D_INITIAL_TRACE_LEVEL 407 #define A2D_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 408 #endif 409 410 #ifndef VDP_INITIAL_TRACE_LEVEL 411 #define VDP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 412 #endif 413 414 #ifndef AVDT_INITIAL_TRACE_LEVEL 415 #define AVDT_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 416 #endif 417 418 #ifndef AVCT_INITIAL_TRACE_LEVEL 419 #define AVCT_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 420 #endif 421 422 #ifndef AVRC_INITIAL_TRACE_LEVEL 423 #define AVRC_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 424 #endif 425 426 #ifndef MCA_INITIAL_TRACE_LEVEL 427 #define MCA_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 428 #endif 429 430 #ifndef HID_INITIAL_TRACE_LEVEL 431 #define HID_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 432 #endif 433 434 /* Application and other default trace levels */ 435 #ifndef RPC_INITIAL_TRACE_LEVEL 436 #define RPC_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 437 #endif 438 439 #ifndef APPL_INITIAL_TRACE_LEVEL 440 #define APPL_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 441 #endif 442 443 #ifndef BT_TRACE_APPL 444 #define BT_TRACE_APPL BT_USE_TRACES 445 #endif 446 447 #ifndef NFC_INITIAL_TRACE_LEVEL 448 #define NFC_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 449 #endif 450 451 #ifndef GATT_INITIAL_TRACE_LEVEL 452 #define GATT_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 453 #endif 454 455 #ifndef SMP_INITIAL_TRACE_LEVEL 456 #define SMP_INITIAL_TRACE_LEVEL BT_TRACE_LEVEL_WARNING 457 #endif 458 // btla-specific -- 459 460 461 #if (BTTRC_INCLUDED == TRUE) 462 /***************************************************************************************/ 463 /* BTTRC MACROS */ 464 465 #define BTTRC_EVENT(lid, event, state) \ 466 {BTTRC_StackTrace1(lid, BTTRC_TYPE_EVENT, event, BTTRC_PARAM_UINT8, state);} 467 #define BTTRC_ACTION(lid, action) \ 468 {BTTRC_StackTrace0(lid, BTTRC_TYPE_ACTION, action);} 469 #define BTTRC_STATE(lid, state) \ 470 {BTTRC_StackTrace1(lid, BTTRC_TYPE_EVENT, BTTRC_TOKEN_SM_STATE, BTTRC_PARAM_UINT8, state);} 471 472 #define BTTRC_API0(lid, api) \ 473 {BTTRC_StackTrace0(lid, BTTRC_TYPE_API, api);} 474 #define BTTRC_API1(lid, api, p1_t,p1_v) \ 475 {BTTRC_StackTrace1(lid, BTTRC_TYPE_API, api, p1_t,p1_v);} 476 #define BTTRC_API2(lid, api, p1_t,p1_v,p2_t,p2_v) \ 477 {BTTRC_StackTrace2(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v);} 478 #define BTTRC_API3(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) \ 479 {BTTRC_StackTrace3(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v);} 480 #define BTTRC_API4(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) \ 481 {BTTRC_StackTrace4(lid, BTTRC_TYPE_API, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v);} 482 #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) \ 483 {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);} 484 #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) \ 485 {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);} 486 487 488 #define BTTRC_DBG0(lid, dbg) \ 489 {BTTRC_StackTrace0(lid, BTTRC_TYPE_DBG, dbg);} 490 #define BTTRC_DBG1(lid, dbg, p1_t,p1_v) \ 491 {BTTRC_StackTrace1(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v);} 492 #define BTTRC_DBG2(lid, dbg, p1_t,p1_v,p2_t,p2_v) \ 493 {BTTRC_StackTrace2(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v);} 494 #define BTTRC_DBG3(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) \ 495 {BTTRC_StackTrace3(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v);} 496 #define BTTRC_DBG4(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) \ 497 {BTTRC_StackTrace4(lid, BTTRC_TYPE_DBG, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v);} 498 #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) \ 499 {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);} 500 #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) \ 501 {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);} 502 503 /***************************************************************************************/ 504 /*AVDT MACROS */ 505 506 #define BTTRC_AVDT_API0(api) \ 507 BTTRC_API0(BTTRC_ID_STK_AVDT, api) 508 #define BTTRC_AVDT_API1(api, p1_t, p1_v) \ 509 BTTRC_API1(BTTRC_ID_STK_AVDT, api, p1_t, p1_v) 510 #define BTTRC_AVDT_API2(api, p1_t, p1_v, p2_t, p2_v) \ 511 BTTRC_API2(BTTRC_ID_STK_AVDT, api, p1_t, p1_v, p2_t, p2_v) 512 /***************************************************************************************/ 513 /*AVDT_SCB MACROS */ 514 515 #define BTTRC_AVDT_SCB_EVENT(event, state) \ 516 BTTRC_EVENT(BTTRC_ID_AVDT_SCB, event, state) 517 #define BTTRC_AVDT_SCB_ACTION(action) \ 518 BTTRC_ACTION(BTTRC_ID_AVDT_SCB, action) 519 #define BTTRC_AVDT_SCB_STATE(next_state) \ 520 BTTRC_STATE(BTTRC_ID_AVDT_SCB, next_state) 521 522 #define BTTRC_AVDT_SCB_DBG0(dbg) \ 523 BTTRC_DBG0(BTTRC_ID_AVDT_SCB, dbg) 524 #define BTTRC_AVDT_SCB_DBG1(dbg, p1_t,p1_v) \ 525 BTTRC_DBG1(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v) 526 #define BTTRC_AVDT_SCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v) \ 527 BTTRC_DBG2(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v) 528 #define BTTRC_AVDT_SCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) \ 529 BTTRC_DBG3(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 530 #define BTTRC_AVDT_SCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) \ 531 BTTRC_DBG4(BTTRC_ID_AVDT_SCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 532 #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) \ 533 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) 534 #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) \ 535 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) 536 /***************************************************************************************/ 537 /*AVDT_CCB MACROS */ 538 539 #define BTTRC_AVDT_CCB_EVENT(event, state) \ 540 BTTRC_EVENT(BTTRC_ID_AVDT_CCB, event, state) 541 #define BTTRC_AVDT_CCB_ACTION(action) \ 542 BTTRC_ACTION(BTTRC_ID_AVDT_CCB, action) 543 #define BTTRC_AVDT_CCB_STATE(next_state) \ 544 BTTRC_STATE(BTTRC_ID_AVDT_CCB, next_state) 545 546 #define BTTRC_AVDT_CCB_DBG0(dbg) \ 547 BTTRC_DBG0(BTTRC_ID_AVDT_CCB, dbg) 548 #define BTTRC_AVDT_CCB_DBG1(dbg, p1_t,p1_v) \ 549 BTTRC_DBG1(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v) 550 #define BTTRC_AVDT_CCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v) \ 551 BTTRC_DBG2(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v) 552 #define BTTRC_AVDT_CCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) \ 553 BTTRC_DBG3(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 554 #define BTTRC_AVDT_CCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) \ 555 BTTRC_DBG4(BTTRC_ID_AVDT_CCB, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 556 #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) \ 557 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) 558 #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) \ 559 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) 560 /***************************************************************************************/ 561 562 #else /*BTTRC_INCLUDED*/ 563 564 /***************************************************************************************/ 565 /* BTTRC MACROS */ 566 567 #define BTTRC_EVENT(lid, event, state) 568 #define BTTRC_ACTION(lid, action) 569 #define BTTRC_STATE(lid, state) 570 571 #define BTTRC_API0(lid, api) 572 #define BTTRC_API1(lid, api, p1_t, p1_v) 573 #define BTTRC_API2(lid, api, p1_t, p1_v, p2_t, p2_v) 574 #define BTTRC_API3(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 575 #define BTTRC_API4(lid, api, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 576 #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) 577 #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) 578 579 580 #define BTTRC_DBG0(lid, dbg) 581 #define BTTRC_DBG1(lid, dbg, p1_t,p1_v) 582 #define BTTRC_DBG2(lid, dbg, p1_t,p1_v,p2_t,p2_v) 583 #define BTTRC_DBG3(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 584 #define BTTRC_DBG4(lid, dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 585 #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) 586 #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) 587 588 /***************************************************************************************/ 589 /*AVDT MACROS */ 590 #define BTTRC_AVDT_API0(api) 591 #define BTTRC_AVDT_API1(api, p1_t,p1_v) 592 #define BTTRC_AVDT_API2(api, p1_t,p1_v,p2_t,p2_v) 593 /***************************************************************************************/ 594 /*AVDT_SCB MACROS */ 595 596 #define BTTRC_AVDT_SCB_EVENT(event, state) 597 #define BTTRC_AVDT_SCB_ACTION(action) 598 #define BTTRC_AVDT_SCB_STATE(next_state) 599 600 #define BTTRC_AVDT_SCB_DBG0(dbg) 601 #define BTTRC_AVDT_SCB_DBG1(dbg, p1_t,p1_v) 602 #define BTTRC_AVDT_SCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v) 603 #define BTTRC_AVDT_SCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 604 #define BTTRC_AVDT_SCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 605 #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) 606 #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) 607 608 /***************************************************************************************/ 609 /*AVDT_CCB MACROS */ 610 611 #define BTTRC_AVDT_CCB_EVENT(event, state) 612 #define BTTRC_AVDT_CCB_ACTION(action) 613 #define BTTRC_AVDT_CCB_STATE(next_state) 614 615 #define BTTRC_AVDT_CCB_DBG0(dbg) 616 #define BTTRC_AVDT_CCB_DBG1(dbg, p1_t,p1_v) 617 #define BTTRC_AVDT_CCB_DBG2(dbg, p1_t,p1_v,p2_t,p2_v) 618 #define BTTRC_AVDT_CCB_DBG3(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v) 619 #define BTTRC_AVDT_CCB_DBG4(dbg, p1_t,p1_v,p2_t,p2_v,p3_t,p3_v,p4_t,p4_v) 620 #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) 621 #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) 622 623 /***************************************************************************************/ 624 625 #endif /*BTTRC_INCLUDED*/ 626 627 628 #if (BT_USE_TRACES == TRUE) 629 630 #define BT_TRACE_0(l,t,m) LogMsg_0((TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t)),(m)) 631 #define BT_TRACE_1(l,t,m,p1) LogMsg_1(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1)) 632 #define BT_TRACE_2(l,t,m,p1,p2) LogMsg_2(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1), \ 633 (UINT32)(p2)) 634 #define BT_TRACE_3(l,t,m,p1,p2,p3) LogMsg_3(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1), \ 635 (UINT32)(p2),(UINT32)(p3)) 636 #define BT_TRACE_4(l,t,m,p1,p2,p3,p4) LogMsg_4(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | (t),(m),(UINT32)(p1), \ 637 (UINT32)(p2),(UINT32)(p3),(UINT32)(p4)) 638 #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), \ 639 (UINT32)(p2),(UINT32)(p3),(UINT32)(p4), \ 640 (UINT32)(p5)) 641 #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), \ 642 (UINT32)(p2),(UINT32)(p3),(UINT32)(p4), \ 643 (UINT32)(p5),(UINT32)(p6)) 644 645 #define BT_ERROR_TRACE_0(l,m) LogMsg_0(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m)) 646 #define BT_ERROR_TRACE_1(l,m,p1) LogMsg_1(TRACE_CTRL_GENERAL | (l) | TRACE_ORG_STACK | TRACE_TYPE_ERROR,(m),(UINT32)(p1)) 647 #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)) 648 #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)) 649 650 /* Define tracing for the HCI unit 651 */ 652 #define HCI_TRACE_ERROR0(m) {if (btu_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_ERROR, m);} 653 #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);} 654 #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);} 655 #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);} 656 #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);} 657 #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);} 658 #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);} 659 660 #define HCI_TRACE_WARNING0(m) {if (btu_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_WARNING, m);} 661 #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);} 662 #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);} 663 #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);} 664 #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);} 665 #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);} 666 #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);} 667 668 #define HCI_TRACE_EVENT0(m) {if (btu_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_EVENT, m);} 669 #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);} 670 #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);} 671 #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);} 672 #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);} 673 #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);} 674 #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);} 675 676 #define HCI_TRACE_DEBUG0(m) {if (btu_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCI, TRACE_TYPE_DEBUG, m);} 677 #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);} 678 #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);} 679 #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);} 680 #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);} 681 #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);} 682 #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);} 683 684 685 /* Define tracing for BTM 686 */ 687 #define BTM_TRACE_ERROR0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_ERROR, m);} 688 #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);} 689 #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);} 690 #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);} 691 #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);} 692 #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);} 693 #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);} 694 695 #define BTM_TRACE_WARNING0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_WARNING, m);} 696 #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);} 697 #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);} 698 #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);} 699 #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);} 700 #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);} 701 #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);} 702 703 #define BTM_TRACE_API0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_API, m);} 704 #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);} 705 #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);} 706 #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);} 707 #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);} 708 #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);} 709 #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);} 710 711 #define BTM_TRACE_EVENT0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_EVENT, m);} 712 #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);} 713 #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);} 714 #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);} 715 #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);} 716 #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);} 717 #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);} 718 719 #define BTM_TRACE_DEBUG0(m) {if (btm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BTM, TRACE_TYPE_DEBUG, m);} 720 #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);} 721 #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);} 722 #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);} 723 #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);} 724 #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);} 725 #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);} 726 727 728 /* Define tracing for the L2CAP unit 729 */ 730 #define L2CAP_TRACE_ERROR0(m) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_ERROR, m);} 731 #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);} 732 #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);} 733 #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);} 734 #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);} 735 #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);} 736 #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);} 737 738 #define L2CAP_TRACE_WARNING0(m) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_WARNING, m);} 739 #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);} 740 #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);} 741 #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);} 742 #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);} 743 #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);} 744 #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);} 745 746 #define L2CAP_TRACE_API0(m) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_API, m);} 747 #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);} 748 #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);} 749 #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);} 750 #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);} 751 #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);} 752 #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);} 753 754 #define L2CAP_TRACE_EVENT0(m) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_EVENT, m);} 755 #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);} 756 #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);} 757 #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);} 758 #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);} 759 #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);} 760 #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);} 761 762 #define L2CAP_TRACE_DEBUG0(m) {if (l2cb.l2cap_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_L2CAP, TRACE_TYPE_DEBUG, m);} 763 #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);} 764 #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);} 765 #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);} 766 #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);} 767 #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);} 768 #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);} 769 770 /* Define tracing for the LLCP unit 771 */ 772 #define LLCP_TRACE_ERROR0(m) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_ERROR, m);} 773 #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);} 774 #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);} 775 #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);} 776 #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);} 777 #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);} 778 #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);} 779 780 #define LLCP_TRACE_WARNING0(m) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_WARNING, m);} 781 #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);} 782 #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);} 783 #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);} 784 #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);} 785 #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);} 786 #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);} 787 788 #define LLCP_TRACE_API0(m) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_API, m);} 789 #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);} 790 #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);} 791 #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);} 792 #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);} 793 #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);} 794 #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);} 795 796 #define LLCP_TRACE_EVENT0(m) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_EVENT, m);} 797 #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);} 798 #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);} 799 #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);} 800 #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);} 801 #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);} 802 #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);} 803 804 #define LLCP_TRACE_DEBUG0(m) {if (llcp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_LLCP, TRACE_TYPE_DEBUG, m);} 805 #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);} 806 #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);} 807 #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);} 808 #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);} 809 #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);} 810 #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);} 811 812 /* Define tracing for the SDP unit 813 */ 814 #define SDP_TRACE_ERROR0(m) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_ERROR, m);} 815 #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);} 816 #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);} 817 #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);} 818 #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);} 819 #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);} 820 #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);} 821 822 #define SDP_TRACE_WARNING0(m) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_WARNING, m);} 823 #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);} 824 #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);} 825 #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);} 826 #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);} 827 #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);} 828 #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);} 829 830 #define SDP_TRACE_API0(m) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_API, m);} 831 #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);} 832 #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);} 833 #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);} 834 #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);} 835 #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);} 836 #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);} 837 838 #define SDP_TRACE_EVENT0(m) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_EVENT, m);} 839 #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);} 840 #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);} 841 #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);} 842 #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);} 843 #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);} 844 #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);} 845 846 #define SDP_TRACE_DEBUG0(m) {if (sdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SDP, TRACE_TYPE_DEBUG, m);} 847 #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);} 848 #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);} 849 #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);} 850 #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);} 851 #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);} 852 #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);} 853 854 /* Define tracing for the RFCOMM unit 855 */ 856 #define RFCOMM_TRACE_ERROR0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_ERROR, m);} 857 #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);} 858 #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);} 859 #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);} 860 #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);} 861 #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);} 862 #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);} 863 864 #define RFCOMM_TRACE_WARNING0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_WARNING, m);} 865 #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);} 866 #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);} 867 #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);} 868 #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);} 869 #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);} 870 #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);} 871 872 #define RFCOMM_TRACE_API0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_API, m);} 873 #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);} 874 #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);} 875 #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);} 876 #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);} 877 #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);} 878 #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);} 879 880 #define RFCOMM_TRACE_EVENT0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_EVENT, m);} 881 #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);} 882 #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);} 883 #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);} 884 #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);} 885 #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);} 886 #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);} 887 888 #define RFCOMM_TRACE_DEBUG0(m) {if (rfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_RFCOMM, TRACE_TYPE_DEBUG, m);} 889 #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);} 890 #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);} 891 #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);} 892 #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);} 893 #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);} 894 #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);} 895 896 /* Define tracing for Serial Port Profile 897 */ 898 #define SPP_TRACE_ERROR0(m) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_ERROR, m);} 899 #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);} 900 #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);} 901 #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);} 902 #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);} 903 #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);} 904 #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);} 905 906 #define SPP_TRACE_WARNING0(m) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_WARNING, m);} 907 #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);} 908 #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);} 909 #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);} 910 #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);} 911 #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);} 912 #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);} 913 914 #define SPP_TRACE_EVENT0(m) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_EVENT, m);} 915 #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);} 916 #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);} 917 #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);} 918 #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);} 919 #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);} 920 #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);} 921 922 #define SPP_TRACE_API0(m) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_API, m);} 923 #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);} 924 #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);} 925 #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);} 926 #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);} 927 #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);} 928 #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);} 929 930 #define SPP_TRACE_DEBUG0(m) {if (spp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SPP, TRACE_TYPE_DEBUG, m);} 931 #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);} 932 #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);} 933 #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);} 934 #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);} 935 #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);} 936 #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);} 937 938 /* Generic Access Profile traces */ 939 #define GAP_TRACE_ERROR0(m) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_ERROR, m);} 940 #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);} 941 #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);} 942 #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);} 943 #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);} 944 #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);} 945 #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);} 946 947 #define GAP_TRACE_EVENT0(m) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_EVENT, m);} 948 #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);} 949 #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);} 950 #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);} 951 #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);} 952 #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);} 953 #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);} 954 955 #define GAP_TRACE_API0(m) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_API, m);} 956 #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);} 957 #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);} 958 #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);} 959 #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);} 960 #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);} 961 #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);} 962 963 #define GAP_TRACE_WARNING0(m) {if (gap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_GAP, TRACE_TYPE_WARNING, m);} 964 #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);} 965 #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);} 966 #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);} 967 #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);} 968 #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);} 969 #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);} 970 971 972 /* Define tracing for OBX 973 */ 974 #define OBX_TRACE_ERROR0(m) {if (obx_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_ERROR, m);} 975 #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);} 976 #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);} 977 #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);} 978 #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);} 979 #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);} 980 #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);} 981 982 #define OBX_TRACE_WARNING0(m) {if (obx_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_WARNING, m);} 983 #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);} 984 #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);} 985 #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);} 986 #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);} 987 #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);} 988 #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);} 989 990 #define OBX_TRACE_EVENT0(m) {if (obx_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_EVENT, m);} 991 #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);} 992 #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);} 993 #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);} 994 #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);} 995 #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);} 996 #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);} 997 998 #define OBX_TRACE_DEBUG0(m) {if (obx_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_DEBUG, m);} 999 #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);} 1000 #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);} 1001 #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);} 1002 #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);} 1003 #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);} 1004 #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);} 1005 1006 #define OBX_TRACE_API0(m) {if (obx_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_OBEX, TRACE_TYPE_API, m);} 1007 #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);} 1008 #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);} 1009 #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);} 1010 #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);} 1011 #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);} 1012 #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);} 1013 1014 /* Define tracing for OBEX application profiles 1015 */ 1016 #define GOEP_TRACE_ERROR0(m) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_ERROR, m);} 1017 #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);} 1018 #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);} 1019 #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);} 1020 #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);} 1021 #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);} 1022 #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);} 1023 1024 #define GOEP_TRACE_WARNING0(m) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_WARNING, m);} 1025 #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);} 1026 #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);} 1027 #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);} 1028 #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);} 1029 #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);} 1030 #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);} 1031 1032 #define GOEP_TRACE_EVENT0(m) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_EVENT, m);} 1033 #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);} 1034 #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);} 1035 #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);} 1036 #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);} 1037 #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);} 1038 #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);} 1039 1040 #define GOEP_TRACE_DEBUG0(m) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_DEBUG, m);} 1041 #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);} 1042 #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);} 1043 #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);} 1044 #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);} 1045 #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);} 1046 #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);} 1047 1048 #define GOEP_TRACE_API0(m) {if (goep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_GOEP, TRACE_TYPE_API, m);} 1049 #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);} 1050 #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);} 1051 #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);} 1052 #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);} 1053 #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);} 1054 #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);} 1055 1056 /* Define tracing for the BPP profile 1057 */ 1058 #define BPP_TRACE_ERROR0(m) {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_ERROR, m);} 1059 #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);} 1060 #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);} 1061 #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);} 1062 #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);} 1063 #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);} 1064 #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);} 1065 1066 #define BPP_TRACE_WARNING0(m) {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_WARNING, m);} 1067 #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);} 1068 #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);} 1069 #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);} 1070 #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);} 1071 #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);} 1072 #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);} 1073 1074 #define BPP_TRACE_EVENT0(m) {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_EVENT, m);} 1075 #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);} 1076 #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);} 1077 #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);} 1078 #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);} 1079 #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);} 1080 #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);} 1081 1082 #define BPP_TRACE_DEBUG0(m) {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_DEBUG, m);} 1083 #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);} 1084 #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);} 1085 #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);} 1086 #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);} 1087 #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);} 1088 #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);} 1089 1090 #define BPP_TRACE_API0(m) {if (bpp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BPP, TRACE_TYPE_API, m);} 1091 #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);} 1092 #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);} 1093 #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);} 1094 #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);} 1095 #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);} 1096 #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);} 1097 1098 /* Define tracing for the BIP profile 1099 */ 1100 #define BIP_TRACE_ERROR0(m) {if (bip_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_ERROR, m);} 1101 #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);} 1102 #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);} 1103 #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);} 1104 #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);} 1105 #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);} 1106 #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);} 1107 1108 #define BIP_TRACE_WARNING0(m) {if (bip_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_WARNING, m);} 1109 #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);} 1110 #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);} 1111 #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);} 1112 #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);} 1113 #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);} 1114 #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);} 1115 1116 #define BIP_TRACE_EVENT0(m) {if (bip_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_EVENT, m);} 1117 #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);} 1118 #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);} 1119 #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);} 1120 #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);} 1121 #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);} 1122 #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);} 1123 1124 #define BIP_TRACE_DEBUG0(m) {if (bip_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_DEBUG, m);} 1125 #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);} 1126 #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);} 1127 #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);} 1128 #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);} 1129 #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);} 1130 #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);} 1131 1132 #define BIP_TRACE_API0(m) {if (bip_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BIP, TRACE_TYPE_API, m);} 1133 #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);} 1134 #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);} 1135 #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);} 1136 #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);} 1137 #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);} 1138 #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);} 1139 1140 /* Define tracing for TCS 1141 */ 1142 #define TCS_TRACE_ERROR0(m) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_ERROR, m);} 1143 #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);} 1144 #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);} 1145 #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);} 1146 #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);} 1147 #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);} 1148 #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);} 1149 1150 #define TCS_TRACE_WARNING0(m) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_WARNING, m);} 1151 #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);} 1152 #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);} 1153 #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);} 1154 #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);} 1155 #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);} 1156 #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);} 1157 1158 #define TCS_TRACE_EVENT0(m) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_EVENT, m);} 1159 #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);} 1160 #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);} 1161 #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);} 1162 #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);} 1163 #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);} 1164 #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);} 1165 1166 #define TCS_TRACE_DEBUG0(m) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_DEBUG, m);} 1167 #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);} 1168 #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);} 1169 #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);} 1170 #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);} 1171 #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);} 1172 #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);} 1173 1174 #define TCS_TRACE_API0(m) {if (tcs_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_TCS, TRACE_TYPE_API, m);} 1175 #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);} 1176 #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);} 1177 #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);} 1178 #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);} 1179 #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);} 1180 #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);} 1181 1182 /* Define tracing for ICP 1183 */ 1184 #define ICP_TRACE_ERROR0(m) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_ERROR, m);} 1185 #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);} 1186 #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);} 1187 #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);} 1188 #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);} 1189 #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);} 1190 #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);} 1191 1192 #define ICP_TRACE_WARNING0(m) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_WARNING, m);} 1193 #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);} 1194 #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);} 1195 #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);} 1196 #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);} 1197 #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);} 1198 #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);} 1199 1200 #define ICP_TRACE_EVENT0(m) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_EVENT, m);} 1201 #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);} 1202 #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);} 1203 #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);} 1204 #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);} 1205 #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);} 1206 #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);} 1207 1208 #define ICP_TRACE_DEBUG0(m) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_DEBUG, m);} 1209 #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);} 1210 #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);} 1211 #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);} 1212 #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);} 1213 #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);} 1214 #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);} 1215 1216 #define ICP_TRACE_API0(m) {if (icp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_ICP, TRACE_TYPE_API, m);} 1217 #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);} 1218 #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);} 1219 #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);} 1220 #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);} 1221 #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);} 1222 #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);} 1223 1224 /* CTP */ 1225 #define CTP_TRACE_ERROR0(m) {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_ERROR, m);} 1226 #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);} 1227 #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);} 1228 #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);} 1229 #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);} 1230 #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);} 1231 #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);} 1232 1233 #define CTP_TRACE_WARNING0(m) {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_WARNING, m);} 1234 #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);} 1235 #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);} 1236 #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);} 1237 #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);} 1238 #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);} 1239 #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);} 1240 1241 #define CTP_TRACE_EVENT0(m) {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_EVENT, m);} 1242 #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);} 1243 #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);} 1244 #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);} 1245 #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);} 1246 #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);} 1247 #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);} 1248 1249 #define CTP_TRACE_DEBUG0(m) {if (ctp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_CTP, TRACE_TYPE_DEBUG, m);} 1250 #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);} 1251 #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);} 1252 #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);} 1253 #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);} 1254 #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);} 1255 #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);} 1256 1257 1258 /* define traces for HID Host */ 1259 #define HIDH_TRACE_ERROR0(m) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m);} 1260 #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);} 1261 #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);} 1262 #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);} 1263 #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);} 1264 #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);} 1265 #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);} 1266 1267 #define HIDH_TRACE_WARNING0(m) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m);} 1268 #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);} 1269 #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);} 1270 #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);} 1271 #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);} 1272 #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);} 1273 #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);} 1274 1275 #define HIDH_TRACE_API0(m) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_API, m);} 1276 #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);} 1277 #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);} 1278 #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);} 1279 #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);} 1280 #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);} 1281 #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);} 1282 1283 #define HIDH_TRACE_EVENT0(m) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m);} 1284 #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);} 1285 #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);} 1286 #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);} 1287 #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);} 1288 #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);} 1289 #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);} 1290 1291 #define HIDH_TRACE_DEBUG0(m) {if (hh_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m);} 1292 #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);} 1293 #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);} 1294 #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);} 1295 #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);} 1296 #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);} 1297 #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);} 1298 1299 /* define traces for HID Device */ 1300 #define HIDD_TRACE_ERROR0(m) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m);} 1301 #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);} 1302 #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);} 1303 #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);} 1304 #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);} 1305 #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);} 1306 #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);} 1307 1308 #define HIDD_TRACE_WARNING0(m) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m);} 1309 #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);} 1310 #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);} 1311 #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);} 1312 #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);} 1313 #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);} 1314 #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);} 1315 1316 #define HIDD_TRACE_API0(m) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_API, m);} 1317 #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);} 1318 #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);} 1319 #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);} 1320 #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);} 1321 #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);} 1322 #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);} 1323 1324 #define HIDD_TRACE_EVENT0(m) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_EVENT, m);} 1325 #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);} 1326 #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);} 1327 #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);} 1328 #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);} 1329 #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);} 1330 #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);} 1331 1332 #define HIDD_TRACE_DEBUG0(m) {if (hd_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m);} 1333 #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);} 1334 #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);} 1335 #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);} 1336 #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);} 1337 #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);} 1338 #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);} 1339 1340 /* define traces for headset profile */ 1341 #define HSP2_TRACE_ERROR0(pcb,m) {if (pcb->trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_ERROR, m);} 1342 #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);} 1343 #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);} 1344 #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);} 1345 #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);} 1346 #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);} 1347 #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);} 1348 1349 #define HSP2_TRACE_WARNING0(pcb,m) {if (pcb->trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_WARNING, m);} 1350 #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);} 1351 #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);} 1352 #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);} 1353 #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);} 1354 #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);} 1355 #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);} 1356 1357 #define HSP2_TRACE_API0(pcb,m) {if (pcb->trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_API, m);} 1358 #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);} 1359 #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);} 1360 #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);} 1361 #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);} 1362 #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);} 1363 #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);} 1364 1365 #define HSP2_TRACE_EVENT0(pcb,m) {if (pcb->trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_EVENT, m);} 1366 #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);} 1367 #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);} 1368 #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);} 1369 #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);} 1370 #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);} 1371 #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);} 1372 1373 #define HSP2_TRACE_DEBUG0(pcb,m) {if (pcb->trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HSP2, TRACE_TYPE_DEBUG, m);} 1374 #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);} 1375 #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);} 1376 #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);} 1377 #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);} 1378 #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);} 1379 #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);} 1380 1381 /* Define tracing for the NFC unit 1382 */ 1383 #define NFC_TRACE_ERROR0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_ERROR, m);} 1384 #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);} 1385 #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);} 1386 #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);} 1387 #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);} 1388 #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);} 1389 #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);} 1390 1391 #define NFC_TRACE_WARNING0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_WARNING, m);} 1392 #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);} 1393 #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);} 1394 #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);} 1395 #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);} 1396 #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);} 1397 #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);} 1398 1399 #define NFC_TRACE_API0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_API, m);} 1400 #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);} 1401 #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);} 1402 #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);} 1403 #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);} 1404 #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);} 1405 #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);} 1406 1407 #define NFC_TRACE_EVENT0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_EVENT, m);} 1408 #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);} 1409 #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);} 1410 #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);} 1411 #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);} 1412 #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);} 1413 #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);} 1414 1415 #define NFC_TRACE_DEBUG0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NFC, TRACE_TYPE_DEBUG, m);} 1416 #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);} 1417 #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);} 1418 #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);} 1419 #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);} 1420 #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);} 1421 #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);} 1422 1423 #define NCI_TRACE_ERROR0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m);} 1424 #define NCI_TRACE_ERROR1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1);} 1425 #define NCI_TRACE_ERROR2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2);} 1426 #define NCI_TRACE_ERROR3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3);} 1427 #define NCI_TRACE_ERROR4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4);} 1428 #define NCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5);} 1429 #define NCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_ERROR, m,p1,p2,p3,p4,p5,p6);} 1430 1431 #define NCI_TRACE_WARNING0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m);} 1432 #define NCI_TRACE_WARNING1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1);} 1433 #define NCI_TRACE_WARNING2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2);} 1434 #define NCI_TRACE_WARNING3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3);} 1435 #define NCI_TRACE_WARNING4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4);} 1436 #define NCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5);} 1437 #define NCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_WARNING, m,p1,p2,p3,p4,p5,p6);} 1438 1439 #define NCI_TRACE_API0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_API, m);} 1440 #define NCI_TRACE_API1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1);} 1441 #define NCI_TRACE_API2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2);} 1442 #define NCI_TRACE_API3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3);} 1443 #define NCI_TRACE_API4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4);} 1444 #define NCI_TRACE_API5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4,p5);} 1445 #define NCI_TRACE_API6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_API, m,p1,p2,p3,p4,p5,p6);} 1446 1447 #define NCI_TRACE_EVENT0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m);} 1448 #define NCI_TRACE_EVENT1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m, p1);} 1449 #define NCI_TRACE_EVENT2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2);} 1450 #define NCI_TRACE_EVENT3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3);} 1451 #define NCI_TRACE_EVENT4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4);} 1452 #define NCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5);} 1453 #define NCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_EVENT, m,p1,p2,p3,p4,p5,p6);} 1454 1455 #define NCI_TRACE_DEBUG0(m) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m);} 1456 #define NCI_TRACE_DEBUG1(m,p1) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1);} 1457 #define NCI_TRACE_DEBUG2(m,p1,p2) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2);} 1458 #define NCI_TRACE_DEBUG3(m,p1,p2,p3) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_3(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3);} 1459 #define NCI_TRACE_DEBUG4(m,p1,p2,p3,p4) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_4(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4);} 1460 #define NCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_5(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5);} 1461 #define NCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) {if (nfc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_6(TRACE_LAYER_NCI, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4,p5,p6);} 1462 1463 #define RW_TRACE_ERROR0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_ERROR, m);} 1464 #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);} 1465 #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);} 1466 #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);} 1467 #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);} 1468 #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);} 1469 #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);} 1470 1471 #define RW_TRACE_WARNING0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_WARNING, m);} 1472 #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);} 1473 #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);} 1474 #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);} 1475 #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);} 1476 #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);} 1477 #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);} 1478 1479 #define RW_TRACE_API0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_API, m);} 1480 #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);} 1481 #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);} 1482 #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);} 1483 #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);} 1484 #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);} 1485 #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);} 1486 1487 #define RW_TRACE_EVENT0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_EVENT, m);} 1488 #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);} 1489 #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);} 1490 #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);} 1491 #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);} 1492 #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);} 1493 #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);} 1494 1495 #define RW_TRACE_DEBUG0(m) {if (rw_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_RW, TRACE_TYPE_DEBUG, m);} 1496 #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);} 1497 #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);} 1498 #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);} 1499 #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);} 1500 #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);} 1501 #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);} 1502 1503 #define CE_TRACE_ERROR0(m) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_ERROR, m);} 1504 #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);} 1505 #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);} 1506 #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);} 1507 #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);} 1508 #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);} 1509 #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);} 1510 1511 #define CE_TRACE_WARNING0(m) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_WARNING, m);} 1512 #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);} 1513 #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);} 1514 #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);} 1515 #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);} 1516 #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);} 1517 #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);} 1518 1519 #define CE_TRACE_API0(m) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_API, m);} 1520 #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);} 1521 #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);} 1522 #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);} 1523 #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);} 1524 #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);} 1525 #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);} 1526 1527 #define CE_TRACE_EVENT0(m) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_EVENT, m);} 1528 #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);} 1529 #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);} 1530 #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);} 1531 #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);} 1532 #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);} 1533 #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);} 1534 1535 #define CE_TRACE_DEBUG0(m) {if (ce_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_CE, TRACE_TYPE_DEBUG, m);} 1536 #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);} 1537 #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);} 1538 #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);} 1539 #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);} 1540 #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);} 1541 #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);} 1542 1543 #define NDEF_TRACE_ERROR0(m) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_ERROR, m);} 1544 #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);} 1545 #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);} 1546 #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);} 1547 #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);} 1548 #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);} 1549 #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);} 1550 1551 #define NDEF_TRACE_WARNING0(m) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_WARNING, m);} 1552 #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);} 1553 #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);} 1554 #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);} 1555 #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);} 1556 #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);} 1557 #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);} 1558 1559 #define NDEF_TRACE_API0(m) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_API, m);} 1560 #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);} 1561 #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);} 1562 #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);} 1563 #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);} 1564 #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);} 1565 #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);} 1566 1567 #define NDEF_TRACE_EVENT0(m) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_EVENT, m);} 1568 #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);} 1569 #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);} 1570 #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);} 1571 #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);} 1572 #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);} 1573 #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);} 1574 1575 #define NDEF_TRACE_DEBUG0(m) {if (ndef_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_NDEF, TRACE_TYPE_DEBUG, m);} 1576 #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);} 1577 #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);} 1578 #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);} 1579 #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);} 1580 #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);} 1581 #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);} 1582 1583 /* Define tracing for the NFA unit 1584 */ 1585 #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);} 1586 #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);} 1587 #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);} 1588 #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);} 1589 #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);} 1590 #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);} 1591 #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);} 1592 1593 #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);} 1594 #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);} 1595 #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);} 1596 #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);} 1597 #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);} 1598 #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);} 1599 #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);} 1600 1601 #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);} 1602 #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);} 1603 #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);} 1604 #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);} 1605 #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);} 1606 #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);} 1607 #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);} 1608 1609 #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);} 1610 #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);} 1611 #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);} 1612 #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);} 1613 #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);} 1614 #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);} 1615 #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);} 1616 1617 #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);} 1618 #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);} 1619 #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);} 1620 #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);} 1621 #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);} 1622 #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);} 1623 #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);} 1624 1625 #define MMI_TRACE_0(m) 1626 #define MMI_TRACE_1(m,p1) 1627 #define MMI_TRACE_2(m,p1,p2) 1628 #define MMI_TRACE_3(m,p1,p2,p3) 1629 #define MMI_TRACE_4(m,p1,p2,p3,p4) 1630 #define MMI_TRACE_5(m,p1,p2,p3,p4,p5) 1631 #define MMI_TRACE_6(m,p1,p2,p3,p4,p5,p6) 1632 1633 #define MMI_DEBUG_0(m) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m) 1634 #define MMI_DEBUG_1(m,p1) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1) 1635 #define MMI_DEBUG_2(m,p1,p2) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2) 1636 #define MMI_DEBUG_3(m,p1,p2,p3) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3) 1637 #define MMI_DEBUG_4(m,p1,p2,p3,p4) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_DEBUG, m,p1,p2,p3,p4) 1638 #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) 1639 #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) 1640 1641 #define MMI_WARNING_0(m) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m) 1642 #define MMI_WARNING_1(m,p1) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1) 1643 #define MMI_WARNING_2(m,p1,p2) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2) 1644 #define MMI_WARNING_3(m,p1,p2,p3) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3) 1645 #define MMI_WARNING_4(m,p1,p2,p3,p4) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_WARNING, m,p1,p2,p3,p4) 1646 #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) 1647 #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) 1648 1649 #define MMI_ERROR_0(m) BT_TRACE_0(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m) 1650 #define MMI_ERROR_1(m,p1) BT_TRACE_1(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1) 1651 #define MMI_ERROR_2(m,p1,p2) BT_TRACE_2(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2) 1652 #define MMI_ERROR_3(m,p1,p2,p3) BT_TRACE_3(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3) 1653 #define MMI_ERROR_4(m,p1,p2,p3,p4) BT_TRACE_4(TRACE_LAYER_HID, TRACE_TYPE_ERROR, m,p1,p2,p3,p4) 1654 #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) 1655 #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) 1656 1657 #define TAK_TRACE_0(m) MMI_Echo(m) 1658 1659 /* hid mouse module traces */ 1660 1661 #define MSKB_TRACE_0(m) MMI_Echo(m) 1662 #define MSKB_TRACE_1(m,p1) MMI_Echo(m,p1) 1663 #define MSKB_TRACE_2(m,p1,p2) MMI_Echo(m,p1,p2) 1664 #define MSKB_TRACE_3(m,p1,p2,p3) MMI_Echo(m,p1,p2,p3) 1665 #define MSKB_TRACE_4(m,p1,p2,p3,p4) MMI_Echo(m,p1,p2,p3,p4) 1666 #define MSKB_TRACE_5(m,p1,p2,p3,p4,p5) MMI_Echo(m,p1,p2,p3,p4,p5) 1667 #define MSKB_TRACE_6(m,p1,p2,p3,p4,p5,p6) MMI_Echo(m,p1,p2,p3,p4,p5,p6) 1668 1669 #define MSKB_DEBUG_0(m) MMI_Echo(m) 1670 #define MSKB_DEBUG_1(m,p1) MMI_Echo(m,p1) 1671 #define MSKB_DEBUG_2(m,p1,p2) MMI_Echo(m,p1,p2) 1672 #define MSKB_DEBUG_3(m,p1,p2,p3) MMI_Echo(m,p1,p2,p3) 1673 #define MSKB_DEBUG_4(m,p1,p2,p3,p4) MMI_Echo(m,p1,p2,p3,p4) 1674 #define MSKB_DEBUG_5(m,p1,p2,p3,p4,p5) MMI_Echo(m,p1,p2,p3,p4,p5) 1675 #define MSKB_DEBUG_6(m,p1,p2,p3,p4,p5,p6) MMI_Echo(m,p1,p2,p3,p4,p5,p6) 1676 1677 #define MSKB_ERROR_0(m) MMI_Echo(m) 1678 #define MSKB_ERROR_1(m,p1) MMI_Echo(m,p1) 1679 #define MSKB_ERROR_2(m,p1,p2) MMI_Echo(m,p1,p2) 1680 #define MSKB_ERROR_3(m,p1,p2,p3) MMI_Echo(m,p1,p2,p3) 1681 #define MSKB_ERROR_4(m,p1,p2,p3,p4) MMI_Echo(m,p1,p2,p3,p4) 1682 #define MSKB_ERROR_5(m,p1,p2,p3,p4,p5) MMI_Echo(m,p1,p2,p3,p4,p5) 1683 #define MSKB_ERROR_6(m,p1,p2,p3,p4,p5,p6) MMI_Echo(m,p1,p2,p3,p4,p5,p6) 1684 1685 /* define traces for DUN */ 1686 1687 #define DUN_TRACE_ERROR0(m) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_ERROR, m);} 1688 #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);} 1689 #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);} 1690 #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);} 1691 #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);} 1692 #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);} 1693 #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);} 1694 1695 #define DUN_TRACE_WARNING0(m) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_WARNING, m);} 1696 #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);} 1697 #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);} 1698 #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);} 1699 #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);} 1700 #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);} 1701 #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);} 1702 1703 #define DUN_TRACE_API0(m) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_API, m);} 1704 #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);} 1705 #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);} 1706 #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);} 1707 #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);} 1708 #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);} 1709 #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);} 1710 1711 #define DUN_TRACE_EVENT0(m) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_EVENT, m);} 1712 #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);} 1713 #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);} 1714 #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);} 1715 #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);} 1716 #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);} 1717 #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);} 1718 1719 #define DUN_TRACE_DEBUG0(m) {if (dun_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_DUN, TRACE_TYPE_DEBUG, m);} 1720 #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);} 1721 #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);} 1722 #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);} 1723 #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);} 1724 #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);} 1725 #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);} 1726 1727 /* define traces for hardcopy cable replacement profile */ 1728 1729 #define HCRP_TRACE_ERROR0(m) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m);} 1730 #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);} 1731 #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);} 1732 #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);} 1733 #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);} 1734 #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);} 1735 #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);} 1736 1737 #define HCRP_TRACE_WARNING0(m) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m);} 1738 #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);} 1739 #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);} 1740 #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);} 1741 #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);} 1742 #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);} 1743 #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);} 1744 1745 #define HCRP_TRACE_API0(m) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_API, m);} 1746 #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);} 1747 #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);} 1748 #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);} 1749 #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);} 1750 #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);} 1751 #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);} 1752 1753 #define HCRP_TRACE_EVENT0(m) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m);} 1754 #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);} 1755 #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);} 1756 #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);} 1757 #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);} 1758 #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);} 1759 #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);} 1760 1761 #define HCRP_TRACE_DEBUG0(m) {if (hcrp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m);} 1762 #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);} 1763 #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);} 1764 #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);} 1765 #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);} 1766 #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);} 1767 #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);} 1768 1769 /* define traces for multi-client server hardcopy cable replacement profile */ 1770 1771 #define HCRPM_TRACE_ERROR0(m) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_ERROR, m);} 1772 #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);} 1773 #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);} 1774 #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);} 1775 #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);} 1776 #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);} 1777 #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);} 1778 1779 #define HCRPM_TRACE_WARNING0(m) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_WARNING, m);} 1780 #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);} 1781 #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);} 1782 #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);} 1783 #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);} 1784 #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);} 1785 #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);} 1786 1787 #define HCRPM_TRACE_API0(m) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_API, m);} 1788 #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);} 1789 #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);} 1790 #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);} 1791 #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);} 1792 #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);} 1793 #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);} 1794 1795 #define HCRPM_TRACE_EVENT0(m) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_EVENT, m);} 1796 #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);} 1797 #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);} 1798 #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);} 1799 #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);} 1800 #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);} 1801 #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);} 1802 1803 #define HCRPM_TRACE_DEBUG0(m) {if (hcrpm_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_HCRP, TRACE_TYPE_DEBUG, m);} 1804 #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);} 1805 #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);} 1806 #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);} 1807 #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);} 1808 #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);} 1809 #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);} 1810 1811 /* define traces for RPC */ 1812 1813 #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));} 1814 #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, \ 1815 (m), (UINT32)(p1));} 1816 #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, \ 1817 (m), (UINT32)(p1), (UINT32)(p2));} 1818 #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, \ 1819 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 1820 #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, \ 1821 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 1822 #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, \ 1823 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 1824 #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, \ 1825 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 1826 1827 #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));} 1828 #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, \ 1829 (m), (UINT32)(p1));} 1830 #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, \ 1831 (m), (UINT32)(p1), (UINT32)(p2));} 1832 #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, \ 1833 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 1834 #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, \ 1835 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 1836 #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, \ 1837 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 1838 #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, \ 1839 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 1840 1841 #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));} 1842 #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, \ 1843 (m), (UINT32)(p1));} 1844 #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, \ 1845 (m), (UINT32)(p1), (UINT32)(p2));} 1846 #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, \ 1847 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 1848 #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, \ 1849 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 1850 #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, \ 1851 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 1852 #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, \ 1853 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 1854 1855 #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));} 1856 #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, \ 1857 (m), (UINT32)(p1));} 1858 #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, \ 1859 (m), (UINT32)(p1), (UINT32)(p2));} 1860 #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, \ 1861 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 1862 #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, \ 1863 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 1864 #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, \ 1865 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 1866 #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, \ 1867 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 1868 1869 #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));} 1870 #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, \ 1871 (m), (UINT32)(p1));} 1872 #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, \ 1873 (m), (UINT32)(p1), (UINT32)(p2));} 1874 #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, \ 1875 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 1876 #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, \ 1877 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 1878 #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, \ 1879 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 1880 #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, \ 1881 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 1882 1883 /* define traces for BNEP */ 1884 1885 #define BNEP_TRACE_ERROR0(m) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_ERROR, m);} 1886 #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);} 1887 #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);} 1888 #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);} 1889 #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);} 1890 #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);} 1891 #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);} 1892 1893 #define BNEP_TRACE_WARNING0(m) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_WARNING, m);} 1894 #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);} 1895 #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);} 1896 #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);} 1897 #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);} 1898 #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);} 1899 #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);} 1900 1901 #define BNEP_TRACE_API0(m) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_API, m);} 1902 #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);} 1903 #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);} 1904 #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);} 1905 #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);} 1906 #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);} 1907 #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);} 1908 1909 #define BNEP_TRACE_EVENT0(m) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_EVENT, m);} 1910 #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);} 1911 #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);} 1912 #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);} 1913 #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);} 1914 #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);} 1915 #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);} 1916 1917 #define BNEP_TRACE_DEBUG0(m) {if (bnep_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_BNEP, TRACE_TYPE_DEBUG, m);} 1918 #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);} 1919 #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);} 1920 #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);} 1921 #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);} 1922 #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);} 1923 #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);} 1924 1925 /* define traces for PAN */ 1926 1927 #define PAN_TRACE_ERROR0(m) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_ERROR, m);} 1928 #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);} 1929 #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);} 1930 #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);} 1931 #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);} 1932 #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);} 1933 #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);} 1934 1935 #define PAN_TRACE_WARNING0(m) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_WARNING, m);} 1936 #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);} 1937 #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);} 1938 #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);} 1939 #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);} 1940 #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);} 1941 #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);} 1942 1943 #define PAN_TRACE_API0(m) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_API, m);} 1944 #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);} 1945 #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);} 1946 #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);} 1947 #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);} 1948 #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);} 1949 #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);} 1950 1951 #define PAN_TRACE_EVENT0(m) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_EVENT, m);} 1952 #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);} 1953 #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);} 1954 #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);} 1955 #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);} 1956 #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);} 1957 #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);} 1958 1959 #define PAN_TRACE_DEBUG0(m) {if (pan_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_PAN, TRACE_TYPE_DEBUG, m);} 1960 #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);} 1961 #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);} 1962 #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);} 1963 #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);} 1964 #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);} 1965 #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);} 1966 1967 /* define traces for SIM */ 1968 1969 #define SAP_TRACE_ERROR0(m) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_ERROR, m);} 1970 #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);} 1971 #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);} 1972 #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);} 1973 #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);} 1974 #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);} 1975 #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);} 1976 1977 #define SAP_TRACE_WARNING0(m) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_WARNING, m);} 1978 #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);} 1979 #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);} 1980 #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);} 1981 #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);} 1982 #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);} 1983 #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);} 1984 1985 #define SAP_TRACE_API0(m) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_API, m);} 1986 #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);} 1987 #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);} 1988 #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);} 1989 #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);} 1990 #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);} 1991 #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);} 1992 1993 #define SAP_TRACE_EVENT0(m) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_EVENT, m);} 1994 #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);} 1995 #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);} 1996 #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);} 1997 #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);} 1998 #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);} 1999 #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);} 2000 2001 #define SAP_TRACE_DEBUG0(m) {if (sap_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SAP, TRACE_TYPE_DEBUG, m);} 2002 #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);} 2003 #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);} 2004 #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);} 2005 #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);} 2006 #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);} 2007 #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);} 2008 2009 /* Define tracing for OPP profile 2010 */ 2011 #define OPP_TRACE_ERROR0(m) {if (opp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_ERROR, m);} 2012 #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);} 2013 #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);} 2014 #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);} 2015 #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);} 2016 #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);} 2017 #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);} 2018 2019 #define OPP_TRACE_WARNING0(m) {if (opp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_WARNING, m);} 2020 #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);} 2021 #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);} 2022 #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);} 2023 #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);} 2024 #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);} 2025 #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);} 2026 2027 #define OPP_TRACE_EVENT0(m) {if (opp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_EVENT, m);} 2028 #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);} 2029 #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);} 2030 #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);} 2031 #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);} 2032 #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);} 2033 #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);} 2034 2035 #define OPP_TRACE_DEBUG0(m) {if (opp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_OPP, TRACE_TYPE_DEBUG, m);} 2036 #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);} 2037 #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);} 2038 #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);} 2039 #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);} 2040 #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);} 2041 #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);} 2042 2043 /* Define tracing for FTP profile 2044 */ 2045 #define FTP_TRACE_ERROR0(m) {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_ERROR, m);} 2046 #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);} 2047 #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);} 2048 #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);} 2049 #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);} 2050 #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);} 2051 #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);} 2052 2053 #define FTP_TRACE_WARNING0(m) {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_WARNING, m);} 2054 #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);} 2055 #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);} 2056 #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);} 2057 #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);} 2058 #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);} 2059 #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);} 2060 2061 #define FTP_TRACE_EVENT0(m) {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_EVENT, m);} 2062 #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);} 2063 #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);} 2064 #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);} 2065 #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);} 2066 #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);} 2067 #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);} 2068 2069 #define FTP_TRACE_DEBUG0(m) {if (ftp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_FTP, TRACE_TYPE_DEBUG, m);} 2070 #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);} 2071 #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);} 2072 #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);} 2073 #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);} 2074 #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);} 2075 #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);} 2076 2077 /* Define tracing for the A2DP profile 2078 */ 2079 #define A2D_TRACE_ERROR0(m) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_ERROR,m);} 2080 #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);} 2081 #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);} 2082 #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);} 2083 #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);} 2084 #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);} 2085 #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);} 2086 2087 #define A2D_TRACE_WARNING0(m) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_WARNING,m);} 2088 #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);} 2089 #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);} 2090 #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);} 2091 #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);} 2092 #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);} 2093 #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);} 2094 2095 #define A2D_TRACE_EVENT0(m) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_EVENT,m);} 2096 #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);} 2097 #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);} 2098 #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);} 2099 #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);} 2100 #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);} 2101 #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);} 2102 2103 #define A2D_TRACE_DEBUG0(m) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_DEBUG,m);} 2104 #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);} 2105 #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);} 2106 #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);} 2107 #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);} 2108 #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);} 2109 #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);} 2110 2111 #define A2D_TRACE_API0(m) {if (a2d_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_A2D, TRACE_TYPE_API,m);} 2112 #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);} 2113 #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);} 2114 #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);} 2115 #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);} 2116 #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);} 2117 #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);} 2118 2119 /* Define tracing for the VDP profile 2120 */ 2121 #define VDP_TRACE_ERROR0(m) {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m);} 2122 #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);} 2123 #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);} 2124 #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);} 2125 #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);} 2126 #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);} 2127 #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);} 2128 2129 #define VDP_TRACE_WARNING0(m) {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m);} 2130 #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);} 2131 #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);} 2132 #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);} 2133 #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);} 2134 #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);} 2135 #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);} 2136 2137 #define VDP_TRACE_EVENT0(m) {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m);} 2138 #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);} 2139 #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);} 2140 #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);} 2141 #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);} 2142 #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);} 2143 #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);} 2144 2145 #define VDP_TRACE_DEBUG0(m) {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m);} 2146 #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);} 2147 #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);} 2148 #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);} 2149 #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);} 2150 #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);} 2151 #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);} 2152 2153 #define VDP_TRACE_API0(m) {if (vdp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API,m);} 2154 #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);} 2155 #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);} 2156 #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);} 2157 #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);} 2158 #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);} 2159 #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);} 2160 2161 2162 /* Define tracing for the LM unit 2163 */ 2164 #define LMP_TRACE_ERROR0(m) {if (lmp_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_ERROR, m);} 2165 #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);} 2166 #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);} 2167 #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);} 2168 #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);} 2169 #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);} 2170 #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);} 2171 2172 #define LMP_TRACE_WARNING0(m) {if (lmp_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_WARNING, m);} 2173 #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);} 2174 #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);} 2175 #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);} 2176 #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);} 2177 #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);} 2178 #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);} 2179 2180 #define LMP_TRACE_EVENT0(m) {if (lmp_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_EVENT, m);} 2181 #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);} 2182 #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);} 2183 #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);} 2184 #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);} 2185 #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);} 2186 #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);} 2187 2188 #define LMP_TRACE_DEBUG0(m) {if (lmp_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_LM, TRACE_TYPE_DEBUG, m);} 2189 #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);} 2190 #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);} 2191 #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);} 2192 #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);} 2193 #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);} 2194 #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);} 2195 2196 /* Define tracing for the LC unit 2197 */ 2198 #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);} 2199 #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);} 2200 #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);} 2201 #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);} 2202 #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);} 2203 #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);} 2204 #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);} 2205 2206 #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);} 2207 #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);} 2208 #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);} 2209 #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);} 2210 #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);} 2211 #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);} 2212 #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);} 2213 2214 #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);} 2215 #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);} 2216 #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);} 2217 #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);} 2218 #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);} 2219 #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);} 2220 #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);} 2221 2222 #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);} 2223 #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);} 2224 #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);} 2225 #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);} 2226 #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);} 2227 #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);} 2228 2229 /* Define tracing for the Serial Dongle Application SDA 2230 */ 2231 #define SDA_TRACE_ERROR0(m) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(m);} 2232 #define SDA_TRACE_ERROR1(m,p1) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_1(m,p1);} 2233 #define SDA_TRACE_ERROR2(m,p1,p2) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_2(m,p1,p2);} 2234 #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);} 2235 #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);} 2236 #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);} 2237 #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);} 2238 2239 #define SDA_TRACE_WARNING0(m) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(m);} 2240 #define SDA_TRACE_WARNING1(m,p1) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_1(m,p1);} 2241 #define SDA_TRACE_WARNING2(m,p1,p2) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_2(m,p1,p2);} 2242 #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);} 2243 #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);} 2244 #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);} 2245 #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);} 2246 2247 #define SDA_TRACE_EVENT0(m) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(m);} 2248 #define SDA_TRACE_EVENT1(m,p1) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_1(m, p1);} 2249 #define SDA_TRACE_EVENT2(m,p1,p2) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_2(m,p1,p2);} 2250 #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);} 2251 #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);} 2252 #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);} 2253 #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);} 2254 2255 #define SDA_TRACE_DEBUG0(m) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(m);} 2256 #define SDA_TRACE_DEBUG1(m,p1) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_1(m,p1);} 2257 #define SDA_TRACE_DEBUG2(m,p1,p2) {if (sda_config_cb.sda_trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_2(m,p1,p2);} 2258 #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);} 2259 #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);} 2260 #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);} 2261 #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);} 2262 2263 /* AVDTP 2264 */ 2265 #define AVDT_TRACE_ERROR0(m) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m);} 2266 #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);} 2267 #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);} 2268 #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);} 2269 #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);} 2270 #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);} 2271 #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);} 2272 2273 #define AVDT_TRACE_WARNING0(m) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m);} 2274 #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);} 2275 #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);} 2276 #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);} 2277 #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);} 2278 #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);} 2279 #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);} 2280 2281 #define AVDT_TRACE_EVENT0(m) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m);} 2282 #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);} 2283 #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);} 2284 #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);} 2285 #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);} 2286 #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);} 2287 #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);} 2288 2289 #define AVDT_TRACE_DEBUG0(m) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m);} 2290 #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);} 2291 #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);} 2292 #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);} 2293 #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);} 2294 #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);} 2295 #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);} 2296 2297 #define AVDT_TRACE_API0(m) {if (avdt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API, m);} 2298 #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);} 2299 #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);} 2300 #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);} 2301 #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);} 2302 #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);} 2303 #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);} 2304 2305 /* Define tracing for the AVCTP protocol 2306 */ 2307 #define AVCT_TRACE_ERROR0(m) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR, m);} 2308 #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);} 2309 #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);} 2310 #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);} 2311 #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);} 2312 #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);} 2313 #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);} 2314 2315 #define AVCT_TRACE_WARNING0(m) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING, m);} 2316 #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);} 2317 #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);} 2318 #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);} 2319 #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);} 2320 #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);} 2321 #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);} 2322 2323 #define AVCT_TRACE_EVENT0(m) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT, m);} 2324 #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);} 2325 #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);} 2326 #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);} 2327 #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);} 2328 #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);} 2329 #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);} 2330 2331 #define AVCT_TRACE_DEBUG0(m) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG, m);} 2332 #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);} 2333 #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);} 2334 #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);} 2335 #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);} 2336 #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);} 2337 #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);} 2338 2339 #define AVCT_TRACE_API0(m) {if (avct_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API, m);} 2340 #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);} 2341 #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);} 2342 #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);} 2343 #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);} 2344 #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);} 2345 #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);} 2346 2347 2348 /* Define tracing for the AVRCP profile 2349 */ 2350 #define AVRC_TRACE_ERROR0(m) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_ERROR,m);} 2351 #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);} 2352 #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);} 2353 #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);} 2354 #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);} 2355 #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);} 2356 #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);} 2357 2358 #define AVRC_TRACE_WARNING0(m) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_WARNING,m);} 2359 #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);} 2360 #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);} 2361 #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);} 2362 #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);} 2363 #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);} 2364 #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);} 2365 2366 #define AVRC_TRACE_EVENT0(m) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_EVENT,m);} 2367 #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);} 2368 #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);} 2369 #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);} 2370 #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);} 2371 #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);} 2372 #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);} 2373 2374 #define AVRC_TRACE_DEBUG0(m) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_DEBUG,m);} 2375 #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);} 2376 #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);} 2377 #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);} 2378 #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);} 2379 #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);} 2380 #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);} 2381 2382 #define AVRC_TRACE_API0(m) {if (avrc_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AVP, TRACE_TYPE_API,m);} 2383 #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);} 2384 #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);} 2385 #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);} 2386 #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);} 2387 #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);} 2388 #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);} 2389 2390 /* MCAP 2391 */ 2392 #define MCA_TRACE_ERROR0(m) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_ERROR, m);} 2393 #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);} 2394 #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);} 2395 #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);} 2396 #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);} 2397 #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);} 2398 #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);} 2399 2400 #define MCA_TRACE_WARNING0(m) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_WARNING, m);} 2401 #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);} 2402 #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);} 2403 #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);} 2404 #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);} 2405 #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);} 2406 #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);} 2407 2408 #define MCA_TRACE_EVENT0(m) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_EVENT, m);} 2409 #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);} 2410 #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);} 2411 #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);} 2412 #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);} 2413 #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);} 2414 #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);} 2415 2416 #define MCA_TRACE_DEBUG0(m) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_DEBUG, m);} 2417 #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);} 2418 #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);} 2419 #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);} 2420 #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);} 2421 #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);} 2422 #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);} 2423 2424 #define MCA_TRACE_API0(m) {if (mca_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_MCA, TRACE_TYPE_API, m);} 2425 #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);} 2426 #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);} 2427 #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);} 2428 #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);} 2429 #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);} 2430 #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);} 2431 2432 /* Define tracing for the AMP unit 2433 */ 2434 #define AMP_TRACE_ERROR0(m) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_ERROR, m);} 2435 #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);} 2436 #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);} 2437 #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);} 2438 #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);} 2439 #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);} 2440 #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);} 2441 2442 #define AMP_TRACE_WARNING0(m) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_WARNING, m);} 2443 #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);} 2444 #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);} 2445 #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);} 2446 #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);} 2447 #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);} 2448 #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);} 2449 2450 #define AMP_TRACE_API0(m) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_API, m);} 2451 #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);} 2452 #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);} 2453 #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);} 2454 #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);} 2455 #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);} 2456 #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);} 2457 2458 #define AMP_TRACE_EVENT0(m) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_EVENT, m);} 2459 #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);} 2460 #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);} 2461 #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);} 2462 #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);} 2463 #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);} 2464 #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);} 2465 2466 #define AMP_TRACE_DEBUG0(m) {if (amp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_AMP, TRACE_TYPE_DEBUG, m);} 2467 #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);} 2468 #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);} 2469 #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);} 2470 #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);} 2471 #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);} 2472 #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);} 2473 2474 /* Define tracing for the ATT/GATT unit 2475 */ 2476 #define GATT_TRACE_ERROR0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_ERROR, m);} 2477 #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);} 2478 #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);} 2479 #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);} 2480 #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);} 2481 #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);} 2482 #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);} 2483 2484 #define GATT_TRACE_WARNING0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_WARNING, m);} 2485 #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);} 2486 #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);} 2487 #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);} 2488 #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);} 2489 #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);} 2490 #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);} 2491 2492 #define GATT_TRACE_API0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_API, m);} 2493 #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);} 2494 #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);} 2495 #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);} 2496 #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);} 2497 #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);} 2498 #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);} 2499 2500 #define GATT_TRACE_EVENT0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_EVENT, m);} 2501 #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);} 2502 #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);} 2503 #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);} 2504 #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);} 2505 #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);} 2506 #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);} 2507 2508 #define GATT_TRACE_DEBUG0(m) {if (gatt_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_ATT, TRACE_TYPE_DEBUG, m);} 2509 #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);} 2510 #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);} 2511 #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);} 2512 #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);} 2513 #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);} 2514 #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);} 2515 2516 /* Define tracing for the SMP unit 2517 */ 2518 #define SMP_TRACE_ERROR0(m) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_ERROR) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_ERROR, m);} 2519 #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);} 2520 #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);} 2521 #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);} 2522 #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);} 2523 #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);} 2524 #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);} 2525 2526 #define SMP_TRACE_WARNING0(m) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_WARNING) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_WARNING, m);} 2527 #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);} 2528 #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);} 2529 #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);} 2530 #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);} 2531 #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);} 2532 #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);} 2533 2534 #define SMP_TRACE_API0(m) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_API) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_API, m);} 2535 #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);} 2536 #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);} 2537 #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);} 2538 #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);} 2539 #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);} 2540 #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);} 2541 2542 #define SMP_TRACE_EVENT0(m) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_EVENT) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_EVENT, m);} 2543 #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);} 2544 #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);} 2545 #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);} 2546 #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);} 2547 #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);} 2548 #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);} 2549 2550 #define SMP_TRACE_DEBUG0(m) {if (smp_cb.trace_level >= BT_TRACE_LEVEL_DEBUG) BT_TRACE_0(TRACE_LAYER_SMP, TRACE_TYPE_DEBUG, m);} 2551 #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);} 2552 #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);} 2553 #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);} 2554 #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);} 2555 #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);} 2556 #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);} 2557 2558 /* END OF USE TRACES */ 2559 #else 2560 2561 #define BT_TRACE_0(l,t,m) 2562 #define BT_TRACE_1(l,t,m,p1) 2563 #define BT_TRACE_2(l,t,m,p1,p2) 2564 #define BT_TRACE_3(l,t,m,p1,p2,p3) 2565 #define BT_TRACE_4(l,t,m,p1,p2,p3,p4) 2566 #define BT_TRACE_5(l,t,m,p1,p2,p3,p4,p5) 2567 #define BT_TRACE_6(l,t,m,p1,p2,p3,p4,p5,p6) 2568 2569 #define BT_ERROR_TRACE_0(l,m) 2570 #define BT_ERROR_TRACE_1(l,m,p1) 2571 #define BT_ERROR_TRACE_2(l,m,p1,p2) 2572 #define BT_ERROR_TRACE_3(l,m,p1,p2,p3) 2573 2574 /* Define tracing for the HCI unit 2575 */ 2576 #define HCI_TRACE_ERROR0(m) 2577 #define HCI_TRACE_ERROR1(m,p1) 2578 #define HCI_TRACE_ERROR2(m,p1,p2) 2579 #define HCI_TRACE_ERROR3(m,p1,p2,p3) 2580 #define HCI_TRACE_ERROR4(m,p1,p2,p3,p4) 2581 #define HCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2582 #define HCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2583 2584 #define HCI_TRACE_WARNING0(m) 2585 #define HCI_TRACE_WARNING1(m,p1) 2586 #define HCI_TRACE_WARNING2(m,p1,p2) 2587 #define HCI_TRACE_WARNING3(m,p1,p2,p3) 2588 #define HCI_TRACE_WARNING4(m,p1,p2,p3,p4) 2589 #define HCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2590 #define HCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2591 2592 #define HCI_TRACE_EVENT0(m) 2593 #define HCI_TRACE_EVENT1(m,p1) 2594 #define HCI_TRACE_EVENT2(m,p1,p2) 2595 #define HCI_TRACE_EVENT3(m,p1,p2,p3) 2596 #define HCI_TRACE_EVENT4(m,p1,p2,p3,p4) 2597 #define HCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2598 #define HCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2599 2600 #define HCI_TRACE_DEBUG0(m) 2601 #define HCI_TRACE_DEBUG1(m,p1) 2602 #define HCI_TRACE_DEBUG2(m,p1,p2) 2603 #define HCI_TRACE_DEBUG3(m,p1,p2,p3) 2604 #define HCI_TRACE_DEBUG4(m,p1,p2,p3,p4) 2605 #define HCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2606 #define HCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2607 2608 2609 /* Define tracing for BTM 2610 */ 2611 #define BTM_TRACE_ERROR0(m) 2612 #define BTM_TRACE_ERROR1(m,p1) 2613 #define BTM_TRACE_ERROR2(m,p1,p2) 2614 #define BTM_TRACE_ERROR3(m,p1,p2,p3) 2615 #define BTM_TRACE_ERROR4(m,p1,p2,p3,p4) 2616 #define BTM_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2617 #define BTM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2618 2619 #define BTM_TRACE_WARNING0(m) 2620 #define BTM_TRACE_WARNING1(m,p1) 2621 #define BTM_TRACE_WARNING2(m,p1,p2) 2622 #define BTM_TRACE_WARNING3(m,p1,p2,p3) 2623 #define BTM_TRACE_WARNING4(m,p1,p2,p3,p4) 2624 #define BTM_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2625 #define BTM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2626 2627 #define BTM_TRACE_API0(m) 2628 #define BTM_TRACE_API1(m,p1) 2629 #define BTM_TRACE_API2(m,p1,p2) 2630 #define BTM_TRACE_API3(m,p1,p2,p3) 2631 #define BTM_TRACE_API4(m,p1,p2,p3,p4) 2632 #define BTM_TRACE_API5(m,p1,p2,p3,p4,p5) 2633 #define BTM_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2634 2635 #define BTM_TRACE_EVENT0(m) 2636 #define BTM_TRACE_EVENT1(m,p1) 2637 #define BTM_TRACE_EVENT2(m,p1,p2) 2638 #define BTM_TRACE_EVENT3(m,p1,p2,p3) 2639 #define BTM_TRACE_EVENT4(m,p1,p2,p3,p4) 2640 #define BTM_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2641 #define BTM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2642 2643 #define BTM_TRACE_DEBUG0(m) 2644 #define BTM_TRACE_DEBUG1(m,p1) 2645 #define BTM_TRACE_DEBUG2(m,p1,p2) 2646 #define BTM_TRACE_DEBUG3(m,p1,p2,p3) 2647 #define BTM_TRACE_DEBUG4(m,p1,p2,p3,p4) 2648 #define BTM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2649 #define BTM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2650 2651 2652 /* Define tracing for the L2CAP unit 2653 */ 2654 #define L2CAP_TRACE_ERROR0(m) 2655 #define L2CAP_TRACE_ERROR1(m,p1) 2656 #define L2CAP_TRACE_ERROR2(m,p1,p2) 2657 #define L2CAP_TRACE_ERROR3(m,p1,p2,p3) 2658 #define L2CAP_TRACE_ERROR4(m,p1,p2,p3,p4) 2659 #define L2CAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2660 #define L2CAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2661 2662 #define L2CAP_TRACE_WARNING0(m) 2663 #define L2CAP_TRACE_WARNING1(m,p1) 2664 #define L2CAP_TRACE_WARNING2(m,p1,p2) 2665 #define L2CAP_TRACE_WARNING3(m,p1,p2,p3) 2666 #define L2CAP_TRACE_WARNING4(m,p1,p2,p3,p4) 2667 #define L2CAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2668 #define L2CAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2669 2670 #define L2CAP_TRACE_API0(m) 2671 #define L2CAP_TRACE_API1(m,p1) 2672 #define L2CAP_TRACE_API2(m,p1,p2) 2673 #define L2CAP_TRACE_API3(m,p1,p2,p3) 2674 #define L2CAP_TRACE_API4(m,p1,p2,p3,p4) 2675 #define L2CAP_TRACE_API5(m,p1,p2,p3,p4,p5) 2676 #define L2CAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2677 2678 #define L2CAP_TRACE_EVENT0(m) 2679 #define L2CAP_TRACE_EVENT1(m,p1) 2680 #define L2CAP_TRACE_EVENT2(m,p1,p2) 2681 #define L2CAP_TRACE_EVENT3(m,p1,p2,p3) 2682 #define L2CAP_TRACE_EVENT4(m,p1,p2,p3,p4) 2683 #define L2CAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2684 #define L2CAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2685 2686 #define L2CAP_TRACE_DEBUG0(m) 2687 #define L2CAP_TRACE_DEBUG1(m,p1) 2688 #define L2CAP_TRACE_DEBUG2(m,p1,p2) 2689 #define L2CAP_TRACE_DEBUG3(m,p1,p2,p3) 2690 #define L2CAP_TRACE_DEBUG4(m,p1,p2,p3,p4) 2691 #define L2CAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2692 #define L2CAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2693 2694 /* Define tracing for the LLCP unit 2695 */ 2696 #define LLCP_TRACE_ERROR0(m) 2697 #define LLCP_TRACE_ERROR1(m,p1) 2698 #define LLCP_TRACE_ERROR2(m,p1,p2) 2699 #define LLCP_TRACE_ERROR3(m,p1,p2,p3) 2700 #define LLCP_TRACE_ERROR4(m,p1,p2,p3,p4) 2701 #define LLCP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2702 #define LLCP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2703 2704 #define LLCP_TRACE_WARNING0(m) 2705 #define LLCP_TRACE_WARNING1(m,p1) 2706 #define LLCP_TRACE_WARNING2(m,p1,p2) 2707 #define LLCP_TRACE_WARNING3(m,p1,p2,p3) 2708 #define LLCP_TRACE_WARNING4(m,p1,p2,p3,p4) 2709 #define LLCP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2710 #define LLCP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2711 2712 #define LLCP_TRACE_API0(m) 2713 #define LLCP_TRACE_API1(m,p1) 2714 #define LLCP_TRACE_API2(m,p1,p2) 2715 #define LLCP_TRACE_API3(m,p1,p2,p3) 2716 #define LLCP_TRACE_API4(m,p1,p2,p3,p4) 2717 #define LLCP_TRACE_API5(m,p1,p2,p3,p4,p5) 2718 #define LLCP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2719 2720 #define LLCP_TRACE_EVENT0(m) 2721 #define LLCP_TRACE_EVENT1(m,p1) 2722 #define LLCP_TRACE_EVENT2(m,p1,p2) 2723 #define LLCP_TRACE_EVENT3(m,p1,p2,p3) 2724 #define LLCP_TRACE_EVENT4(m,p1,p2,p3,p4) 2725 #define LLCP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2726 #define LLCP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2727 2728 #define LLCP_TRACE_DEBUG0(m) 2729 #define LLCP_TRACE_DEBUG1(m,p1) 2730 #define LLCP_TRACE_DEBUG2(m,p1,p2) 2731 #define LLCP_TRACE_DEBUG3(m,p1,p2,p3) 2732 #define LLCP_TRACE_DEBUG4(m,p1,p2,p3,p4) 2733 #define LLCP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2734 #define LLCP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2735 2736 /* Define tracing for the SDP unit 2737 */ 2738 #define SDP_TRACE_ERROR0(m) 2739 #define SDP_TRACE_ERROR1(m,p1) 2740 #define SDP_TRACE_ERROR2(m,p1,p2) 2741 #define SDP_TRACE_ERROR3(m,p1,p2,p3) 2742 #define SDP_TRACE_ERROR4(m,p1,p2,p3,p4) 2743 #define SDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2744 #define SDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2745 2746 #define SDP_TRACE_WARNING0(m) 2747 #define SDP_TRACE_WARNING1(m,p1) 2748 #define SDP_TRACE_WARNING2(m,p1,p2) 2749 #define SDP_TRACE_WARNING3(m,p1,p2,p3) 2750 #define SDP_TRACE_WARNING4(m,p1,p2,p3,p4) 2751 #define SDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2752 #define SDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2753 2754 #define SDP_TRACE_API0(m) 2755 #define SDP_TRACE_API1(m,p1) 2756 #define SDP_TRACE_API2(m,p1,p2) 2757 #define SDP_TRACE_API3(m,p1,p2,p3) 2758 #define SDP_TRACE_API4(m,p1,p2,p3,p4) 2759 #define SDP_TRACE_API5(m,p1,p2,p3,p4,p5) 2760 #define SDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2761 2762 #define SDP_TRACE_EVENT0(m) 2763 #define SDP_TRACE_EVENT1(m,p1) 2764 #define SDP_TRACE_EVENT2(m,p1,p2) 2765 #define SDP_TRACE_EVENT3(m,p1,p2,p3) 2766 #define SDP_TRACE_EVENT4(m,p1,p2,p3,p4) 2767 #define SDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2768 #define SDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2769 2770 #define SDP_TRACE_DEBUG0(m) 2771 #define SDP_TRACE_DEBUG1(m,p1) 2772 #define SDP_TRACE_DEBUG2(m,p1,p2) 2773 #define SDP_TRACE_DEBUG3(m,p1,p2,p3) 2774 #define SDP_TRACE_DEBUG4(m,p1,p2,p3,p4) 2775 #define SDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2776 #define SDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2777 2778 /* Define tracing for the RFCOMM unit 2779 */ 2780 #define RFCOMM_TRACE_ERROR0(m) 2781 #define RFCOMM_TRACE_ERROR1(m,p1) 2782 #define RFCOMM_TRACE_ERROR2(m,p1,p2) 2783 #define RFCOMM_TRACE_ERROR3(m,p1,p2,p3) 2784 #define RFCOMM_TRACE_ERROR4(m,p1,p2,p3,p4) 2785 #define RFCOMM_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2786 #define RFCOMM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2787 2788 #define RFCOMM_TRACE_WARNING0(m) 2789 #define RFCOMM_TRACE_WARNING1(m,p1) 2790 #define RFCOMM_TRACE_WARNING2(m,p1,p2) 2791 #define RFCOMM_TRACE_WARNING3(m,p1,p2,p3) 2792 #define RFCOMM_TRACE_WARNING4(m,p1,p2,p3,p4) 2793 #define RFCOMM_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2794 #define RFCOMM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2795 2796 #define RFCOMM_TRACE_API0(m) 2797 #define RFCOMM_TRACE_API1(m,p1) 2798 #define RFCOMM_TRACE_API2(m,p1,p2) 2799 #define RFCOMM_TRACE_API3(m,p1,p2,p3) 2800 #define RFCOMM_TRACE_API4(m,p1,p2,p3,p4) 2801 #define RFCOMM_TRACE_API5(m,p1,p2,p3,p4,p5) 2802 #define RFCOMM_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2803 2804 #define RFCOMM_TRACE_EVENT0(m) 2805 #define RFCOMM_TRACE_EVENT1(m,p1) 2806 #define RFCOMM_TRACE_EVENT2(m,p1,p2) 2807 #define RFCOMM_TRACE_EVENT3(m,p1,p2,p3) 2808 #define RFCOMM_TRACE_EVENT4(m,p1,p2,p3,p4) 2809 #define RFCOMM_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2810 #define RFCOMM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2811 2812 #define RFCOMM_TRACE_DEBUG0(m) 2813 #define RFCOMM_TRACE_DEBUG1(m,p1) 2814 #define RFCOMM_TRACE_DEBUG2(m,p1,p2) 2815 #define RFCOMM_TRACE_DEBUG3(m,p1,p2,p3) 2816 #define RFCOMM_TRACE_DEBUG4(m,p1,p2,p3,p4) 2817 #define RFCOMM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2818 #define RFCOMM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2819 2820 /* Define tracing for Serial Port Profile 2821 */ 2822 #define SPP_TRACE_ERROR0(m) 2823 #define SPP_TRACE_ERROR1(m,p1) 2824 #define SPP_TRACE_ERROR2(m,p1,p2) 2825 #define SPP_TRACE_ERROR3(m,p1,p2,p3) 2826 #define SPP_TRACE_ERROR4(m,p1,p2,p3,p4) 2827 #define SPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2828 #define SPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2829 2830 #define SPP_TRACE_WARNING0(m) 2831 #define SPP_TRACE_WARNING1(m,p1) 2832 #define SPP_TRACE_WARNING2(m,p1,p2) 2833 #define SPP_TRACE_WARNING3(m,p1,p2,p3) 2834 #define SPP_TRACE_WARNING4(m,p1,p2,p3,p4) 2835 #define SPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2836 #define SPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2837 2838 #define SPP_TRACE_EVENT0(m) 2839 #define SPP_TRACE_EVENT1(m,p1) 2840 #define SPP_TRACE_EVENT2(m,p1,p2) 2841 #define SPP_TRACE_EVENT3(m,p1,p2,p3) 2842 #define SPP_TRACE_EVENT4(m,p1,p2,p3,p4) 2843 #define SPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2844 #define SPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2845 2846 #define SPP_TRACE_API0(m) 2847 #define SPP_TRACE_API1(m,p1) 2848 #define SPP_TRACE_API2(m,p1,p2) 2849 #define SPP_TRACE_API3(m,p1,p2,p3) 2850 #define SPP_TRACE_API4(m,p1,p2,p3,p4) 2851 #define SPP_TRACE_API5(m,p1,p2,p3,p4,p5) 2852 #define SPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2853 2854 #define SPP_TRACE_DEBUG0(m) 2855 #define SPP_TRACE_DEBUG1(m,p1) 2856 #define SPP_TRACE_DEBUG2(m,p1,p2) 2857 #define SPP_TRACE_DEBUG3(m,p1,p2,p3) 2858 #define SPP_TRACE_DEBUG4(m,p1,p2,p3,p4) 2859 #define SPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2860 #define SPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2861 2862 2863 /* Generic Access Profile traces */ 2864 #define GAP_TRACE_ERROR0(m) 2865 #define GAP_TRACE_ERROR1(m,p1) 2866 #define GAP_TRACE_ERROR2(m,p1,p2) 2867 #define GAP_TRACE_ERROR3(m,p1,p2,p3) 2868 #define GAP_TRACE_ERROR4(m,p1,p2,p3,p4) 2869 #define GAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2870 #define GAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2871 2872 #define GAP_TRACE_EVENT0(m) 2873 #define GAP_TRACE_EVENT1(m,p1) 2874 #define GAP_TRACE_EVENT2(m,p1,p2) 2875 #define GAP_TRACE_EVENT3(m,p1,p2,p3) 2876 #define GAP_TRACE_EVENT4(m,p1,p2,p3,p4) 2877 #define GAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2878 #define GAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2879 2880 #define GAP_TRACE_API0(m) 2881 #define GAP_TRACE_API1(m,p1) 2882 #define GAP_TRACE_API2(m,p1,p2) 2883 #define GAP_TRACE_API3(m,p1,p2,p3) 2884 #define GAP_TRACE_API4(m,p1,p2,p3,p4) 2885 #define GAP_TRACE_API5(m,p1,p2,p3,p4,p5) 2886 #define GAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2887 2888 #define GAP_TRACE_WARNING0(m) 2889 #define GAP_TRACE_WARNING1(m,p1) 2890 #define GAP_TRACE_WARNING2(m,p1,p2) 2891 #define GAP_TRACE_WARNING3(m,p1,p2,p3) 2892 #define GAP_TRACE_WARNING4(m,p1,p2,p3,p4) 2893 #define GAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2894 #define GAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2895 2896 2897 /* Define tracing for OBX 2898 */ 2899 #define OBX_TRACE_ERROR0(m) 2900 #define OBX_TRACE_ERROR1(m,p1) 2901 #define OBX_TRACE_ERROR2(m,p1,p2) 2902 #define OBX_TRACE_ERROR3(m,p1,p2,p3) 2903 #define OBX_TRACE_ERROR4(m,p1,p2,p3,p4) 2904 #define OBX_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2905 #define OBX_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2906 2907 #define OBX_TRACE_WARNING0(m) 2908 #define OBX_TRACE_WARNING1(m,p1) 2909 #define OBX_TRACE_WARNING2(m,p1,p2) 2910 #define OBX_TRACE_WARNING3(m,p1,p2,p3) 2911 #define OBX_TRACE_WARNING4(m,p1,p2,p3,p4) 2912 #define OBX_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2913 #define OBX_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2914 2915 #define OBX_TRACE_EVENT0(m) 2916 #define OBX_TRACE_EVENT1(m,p1) 2917 #define OBX_TRACE_EVENT2(m,p1,p2) 2918 #define OBX_TRACE_EVENT3(m,p1,p2,p3) 2919 #define OBX_TRACE_EVENT4(m,p1,p2,p3,p4) 2920 #define OBX_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2921 #define OBX_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2922 2923 #define OBX_TRACE_DEBUG0(m) 2924 #define OBX_TRACE_DEBUG1(m,p1) 2925 #define OBX_TRACE_DEBUG2(m,p1,p2) 2926 #define OBX_TRACE_DEBUG3(m,p1,p2,p3) 2927 #define OBX_TRACE_DEBUG4(m,p1,p2,p3,p4) 2928 #define OBX_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 2929 #define OBX_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2930 2931 #define OBX_TRACE_API0(m) 2932 #define OBX_TRACE_API1(m,p1) 2933 #define OBX_TRACE_API2(m,p1,p2) 2934 #define OBX_TRACE_API3(m,p1,p2,p3) 2935 #define OBX_TRACE_API4(m,p1,p2,p3,p4) 2936 #define OBX_TRACE_API5(m,p1,p2,p3,p4,p5) 2937 #define OBX_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2938 2939 /* Define tracing for GOEP application profiles 2940 */ 2941 #define GOEP_TRACE_ERROR0(m) 2942 #define GOEP_TRACE_ERROR1(m,p1) 2943 #define GOEP_TRACE_ERROR2(m,p1,p2) 2944 #define GOEP_TRACE_ERROR3(m,p1,p2,p3) 2945 #define GOEP_TRACE_ERROR4(m,p1,p2,p3,p4) 2946 #define GOEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2947 #define GOEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2948 2949 #define GOEP_TRACE_WARNING0(m) 2950 #define GOEP_TRACE_WARNING1(m,p1) 2951 #define GOEP_TRACE_WARNING2(m,p1,p2) 2952 #define GOEP_TRACE_WARNING3(m,p1,p2,p3) 2953 #define GOEP_TRACE_WARNING4(m,p1,p2,p3,p4) 2954 #define GOEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2955 #define GOEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2956 2957 #define GOEP_TRACE_EVENT0(m) 2958 #define GOEP_TRACE_EVENT1(m,p1) 2959 #define GOEP_TRACE_EVENT2(m,p1,p2) 2960 #define GOEP_TRACE_EVENT3(m,p1,p2,p3) 2961 #define GOEP_TRACE_EVENT4(m,p1,p2,p3,p4) 2962 #define GOEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 2963 #define GOEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 2964 2965 #define GOEP_TRACE_DEBUG0(m) 2966 #define GOEP_TRACE_DEBUG1(m,p1) 2967 #define GOEP_TRACE_DEBUG2(m,p1,p2) 2968 #define GOEP_TRACE_DEBUG3(m,p1,p2,p3) 2969 #define GOEP_TRACE_DEBUG4(m,p1,p2,p3,p4) 2970 #define GOEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 2971 2972 #define GOEP_TRACE_API0(m) 2973 #define GOEP_TRACE_API1(m,p1) 2974 #define GOEP_TRACE_API2(m,p1,p2) 2975 #define GOEP_TRACE_API3(m,p1,p2,p3) 2976 #define GOEP_TRACE_API4(m,p1,p2,p3,p4) 2977 #define GOEP_TRACE_API5(m,p1,p2,p3,p4,p5) 2978 #define GOEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 2979 2980 /* Define tracing for the BPP profile 2981 */ 2982 #define BPP_TRACE_ERROR0(m) 2983 #define BPP_TRACE_ERROR1(m,p1) 2984 #define BPP_TRACE_ERROR2(m,p1,p2) 2985 #define BPP_TRACE_ERROR3(m,p1,p2,p3) 2986 #define BPP_TRACE_ERROR4(m,p1,p2,p3,p4) 2987 #define BPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 2988 #define BPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 2989 2990 #define BPP_TRACE_WARNING0(m) 2991 #define BPP_TRACE_WARNING1(m,p1) 2992 #define BPP_TRACE_WARNING2(m,p1,p2) 2993 #define BPP_TRACE_WARNING3(m,p1,p2,p3) 2994 #define BPP_TRACE_WARNING4(m,p1,p2,p3,p4) 2995 #define BPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 2996 #define BPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 2997 2998 #define BPP_TRACE_EVENT0(m) 2999 #define BPP_TRACE_EVENT1(m,p1) 3000 #define BPP_TRACE_EVENT2(m,p1,p2) 3001 #define BPP_TRACE_EVENT3(m,p1,p2,p3) 3002 #define BPP_TRACE_EVENT4(m,p1,p2,p3,p4) 3003 #define BPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3004 #define BPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3005 3006 #define BPP_TRACE_DEBUG0(m) 3007 #define BPP_TRACE_DEBUG1(m,p1) 3008 #define BPP_TRACE_DEBUG2(m,p1,p2) 3009 #define BPP_TRACE_DEBUG3(m,p1,p2,p3) 3010 #define BPP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3011 #define BPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3012 #define BPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3013 3014 #define BPP_TRACE_API0(m) 3015 #define BPP_TRACE_API1(m,p1) 3016 #define BPP_TRACE_API2(m,p1,p2) 3017 #define BPP_TRACE_API3(m,p1,p2,p3) 3018 #define BPP_TRACE_API4(m,p1,p2,p3,p4) 3019 #define BPP_TRACE_API5(m,p1,p2,p3,p4,p5) 3020 #define BPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3021 3022 /* Define tracing for the BIP profile 3023 */ 3024 #define BIP_TRACE_ERROR0(m) 3025 #define BIP_TRACE_ERROR1(m,p1) 3026 #define BIP_TRACE_ERROR2(m,p1,p2) 3027 #define BIP_TRACE_ERROR3(m,p1,p2,p3) 3028 #define BIP_TRACE_ERROR4(m,p1,p2,p3,p4) 3029 #define BIP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3030 #define BIP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3031 3032 #define BIP_TRACE_WARNING0(m) 3033 #define BIP_TRACE_WARNING1(m,p1) 3034 #define BIP_TRACE_WARNING2(m,p1,p2) 3035 #define BIP_TRACE_WARNING3(m,p1,p2,p3) 3036 #define BIP_TRACE_WARNING4(m,p1,p2,p3,p4) 3037 #define BIP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3038 #define BIP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3039 3040 #define BIP_TRACE_EVENT0(m) 3041 #define BIP_TRACE_EVENT1(m,p1) 3042 #define BIP_TRACE_EVENT2(m,p1,p2) 3043 #define BIP_TRACE_EVENT3(m,p1,p2,p3) 3044 #define BIP_TRACE_EVENT4(m,p1,p2,p3,p4) 3045 #define BIP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3046 #define BIP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3047 3048 #define BIP_TRACE_DEBUG0(m) 3049 #define BIP_TRACE_DEBUG1(m,p1) 3050 #define BIP_TRACE_DEBUG2(m,p1,p2) 3051 #define BIP_TRACE_DEBUG3(m,p1,p2,p3) 3052 #define BIP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3053 #define BIP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3054 #define BIP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3055 3056 #define BIP_TRACE_API0(m) 3057 #define BIP_TRACE_API1(m,p1) 3058 #define BIP_TRACE_API2(m,p1,p2) 3059 #define BIP_TRACE_API3(m,p1,p2,p3) 3060 #define BIP_TRACE_API4(m,p1,p2,p3,p4) 3061 #define BIP_TRACE_API5(m,p1,p2,p3,p4,p5) 3062 #define BIP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3063 3064 /* Define tracing for TCS 3065 */ 3066 #define TCS_TRACE_ERROR0(m) 3067 #define TCS_TRACE_ERROR1(m,p1) 3068 #define TCS_TRACE_ERROR2(m,p1,p2) 3069 #define TCS_TRACE_ERROR3(m,p1,p2,p3) 3070 #define TCS_TRACE_ERROR4(m,p1,p2,p3,p4) 3071 #define TCS_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3072 #define TCS_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3073 3074 #define TCS_TRACE_WARNING0(m) 3075 #define TCS_TRACE_WARNING1(m,p1) 3076 #define TCS_TRACE_WARNING2(m,p1,p2) 3077 #define TCS_TRACE_WARNING3(m,p1,p2,p3) 3078 #define TCS_TRACE_WARNING4(m,p1,p2,p3,p4) 3079 #define TCS_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3080 #define TCS_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3081 3082 #define TCS_TRACE_EVENT0(m) 3083 #define TCS_TRACE_EVENT1(m,p1) 3084 #define TCS_TRACE_EVENT2(m,p1,p2) 3085 #define TCS_TRACE_EVENT3(m,p1,p2,p3) 3086 #define TCS_TRACE_EVENT4(m,p1,p2,p3,p4) 3087 #define TCS_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3088 #define TCS_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3089 3090 #define TCS_TRACE_DEBUG0(m) 3091 #define TCS_TRACE_DEBUG1(m,p1) 3092 #define TCS_TRACE_DEBUG2(m,p1,p2) 3093 #define TCS_TRACE_DEBUG3(m,p1,p2,p3) 3094 #define TCS_TRACE_DEBUG4(m,p1,p2,p3,p4) 3095 #define TCS_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3096 #define TCS_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3097 3098 #define TCS_TRACE_API0(m) 3099 #define TCS_TRACE_API1(m,p1) 3100 #define TCS_TRACE_API2(m,p1,p2) 3101 #define TCS_TRACE_API3(m,p1,p2,p3) 3102 #define TCS_TRACE_API4(m,p1,p2,p3,p4) 3103 #define TCS_TRACE_API5(m,p1,p2,p3,p4,p5) 3104 #define TCS_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3105 3106 /* Define tracing for ICP 3107 */ 3108 #define ICP_TRACE_ERROR0(m) 3109 #define ICP_TRACE_ERROR1(m,p1) 3110 #define ICP_TRACE_ERROR2(m,p1,p2) 3111 #define ICP_TRACE_ERROR3(m,p1,p2,p3) 3112 #define ICP_TRACE_ERROR4(m,p1,p2,p3,p4) 3113 #define ICP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3114 #define ICP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3115 3116 #define ICP_TRACE_WARNING0(m) 3117 #define ICP_TRACE_WARNING1(m,p1) 3118 #define ICP_TRACE_WARNING2(m,p1,p2) 3119 #define ICP_TRACE_WARNING3(m,p1,p2,p3) 3120 #define ICP_TRACE_WARNING4(m,p1,p2,p3,p4) 3121 #define ICP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3122 #define ICP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3123 3124 #define ICP_TRACE_EVENT0(m) 3125 #define ICP_TRACE_EVENT1(m,p1) 3126 #define ICP_TRACE_EVENT2(m,p1,p2) 3127 #define ICP_TRACE_EVENT3(m,p1,p2,p3) 3128 #define ICP_TRACE_EVENT4(m,p1,p2,p3,p4) 3129 #define ICP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3130 #define ICP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3131 3132 #define ICP_TRACE_DEBUG0(m) 3133 #define ICP_TRACE_DEBUG1(m,p1) 3134 #define ICP_TRACE_DEBUG2(m,p1,p2) 3135 #define ICP_TRACE_DEBUG3(m,p1,p2,p3) 3136 #define ICP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3137 #define ICP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3138 #define ICP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3139 3140 #define ICP_TRACE_API0(m) 3141 #define ICP_TRACE_API1(m,p1) 3142 #define ICP_TRACE_API2(m,p1,p2) 3143 #define ICP_TRACE_API3(m,p1,p2,p3) 3144 #define ICP_TRACE_API4(m,p1,p2,p3,p4) 3145 #define ICP_TRACE_API5(m,p1,p2,p3,p4,p5) 3146 #define ICP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3147 3148 /* Define tracing for CTP 3149 */ 3150 #define CTP_TRACE_ERROR0(m) 3151 #define CTP_TRACE_ERROR1(m,p1) 3152 #define CTP_TRACE_ERROR2(m,p1,p2) 3153 #define CTP_TRACE_ERROR3(m,p1,p2,p3) 3154 #define CTP_TRACE_ERROR4(m,p1,p2,p3,p4) 3155 #define CTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3156 #define CTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3157 3158 #define CTP_TRACE_WARNING0(m) 3159 #define CTP_TRACE_WARNING1(m,p1) 3160 #define CTP_TRACE_WARNING2(m,p1,p2) 3161 #define CTP_TRACE_WARNING3(m,p1,p2,p3) 3162 #define CTP_TRACE_WARNING4(m,p1,p2,p3,p4) 3163 #define CTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3164 #define CTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3165 3166 #define CTP_TRACE_EVENT0(m) 3167 #define CTP_TRACE_EVENT1(m,p1) 3168 #define CTP_TRACE_EVENT2(m,p1,p2) 3169 #define CTP_TRACE_EVENT3(m,p1,p2,p3) 3170 #define CTP_TRACE_EVENT4(m,p1,p2,p3,p4) 3171 #define CTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3172 #define CTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3173 3174 #define CTP_TRACE_DEBUG0(m) 3175 #define CTP_TRACE_DEBUG1(m,p1) 3176 #define CTP_TRACE_DEBUG2(m,p1,p2) 3177 #define CTP_TRACE_DEBUG3(m,p1,p2,p3) 3178 #define CTP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3179 #define CTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3180 #define CTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3181 3182 #define CTP_TRACE_API0(m) 3183 #define CTP_TRACE_API1(m,p1) 3184 #define CTP_TRACE_API2(m,p1,p2) 3185 #define CTP_TRACE_API3(m,p1,p2,p3) 3186 #define CTP_TRACE_API4(m,p1,p2,p3,p4) 3187 #define CTP_TRACE_API5(m,p1,p2,p3,p4,p5) 3188 #define CTP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3189 3190 /* define traces for headset profile */ 3191 3192 #define HSP2_TRACE_ERROR0(pcb,m) 3193 #define HSP2_TRACE_ERROR1(pcb,m,p1) 3194 #define HSP2_TRACE_ERROR2(pcb,m,p1,p2) 3195 #define HSP2_TRACE_ERROR3(pcb,m,p1,p2,p3) 3196 #define HSP2_TRACE_ERROR4(pcb,m,p1,p2,p3,p4) 3197 #define HSP2_TRACE_ERROR5(pcb,m,p1,p2,p3,p4,p5) 3198 #define HSP2_TRACE_ERROR6(pcb,m,p1,p2,p3,p4,p5,p6) 3199 3200 #define HSP2_TRACE_WARNING0(pcb,m) 3201 #define HSP2_TRACE_WARNING1(pcb,m,p1) 3202 #define HSP2_TRACE_WARNING2(pcb,m,p1,p2) 3203 #define HSP2_TRACE_WARNING3(pcb,m,p1,p2,p3) 3204 #define HSP2_TRACE_WARNING4(pcb,m,p1,p2,p3,p4) 3205 #define HSP2_TRACE_WARNING5(pcb,m,p1,p2,p3,p4,p5) 3206 #define HSP2_TRACE_WARNING6(pcb,m,p1,p2,p3,p4,p5,p6) 3207 3208 #define HSP2_TRACE_API0(pcb,m) 3209 #define HSP2_TRACE_API1(pcb,m,p1) 3210 #define HSP2_TRACE_API2(pcb,m,p1,p2) 3211 #define HSP2_TRACE_API3(pcb,m,p1,p2,p3) 3212 #define HSP2_TRACE_API4(pcb,m,p1,p2,p3,p4) 3213 #define HSP2_TRACE_API5(pcb,m,p1,p2,p3,p4,p5) 3214 #define HSP2_TRACE_API6(pcb,m,p1,p2,p3,p4,p5,p6) 3215 3216 #define HSP2_TRACE_EVENT0(pcb,m) 3217 #define HSP2_TRACE_EVENT1(pcb,m,p1) 3218 #define HSP2_TRACE_EVENT2(pcb,m,p1,p2) 3219 #define HSP2_TRACE_EVENT3(pcb,m,p1,p2,p3) 3220 #define HSP2_TRACE_EVENT4(pcb,m,p1,p2,p3,p4) 3221 #define HSP2_TRACE_EVENT5(pcb,m,p1,p2,p3,p4,p5) 3222 #define HSP2_TRACE_EVENT6(pcb,m,p1,p2,p3,p4,p5,p6) 3223 3224 #define HSP2_TRACE_DEBUG0(pcb,m) 3225 #define HSP2_TRACE_DEBUG1(pcb,m,p1) 3226 #define HSP2_TRACE_DEBUG2(pcb,m,p1,p2) 3227 #define HSP2_TRACE_DEBUG3(pcb,m,p1,p2,p3) 3228 #define HSP2_TRACE_DEBUG4(pcb,m,p1,p2,p3,p4) 3229 #define HSP2_TRACE_DEBUG5(pcb,m,p1,p2,p3,p4,p5) 3230 #define HSP2_TRACE_DEBUG6(pcb,m,p1,p2,p3,p4,p5,p6) 3231 3232 /* Define tracing for the NFC unit 3233 */ 3234 #define NFC_TRACE_ERROR0(m) 3235 #define NFC_TRACE_ERROR1(m,p1) 3236 #define NFC_TRACE_ERROR2(m,p1,p2) 3237 #define NFC_TRACE_ERROR3(m,p1,p2,p3) 3238 #define NFC_TRACE_ERROR4(m,p1,p2,p3,p4) 3239 #define NFC_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3240 #define NFC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3241 3242 #define NFC_TRACE_WARNING0(m) 3243 #define NFC_TRACE_WARNING1(m,p1) 3244 #define NFC_TRACE_WARNING2(m,p1,p2) 3245 #define NFC_TRACE_WARNING3(m,p1,p2,p3) 3246 #define NFC_TRACE_WARNING4(m,p1,p2,p3,p4) 3247 #define NFC_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3248 #define NFC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3249 3250 #define NFC_TRACE_API0(m) 3251 #define NFC_TRACE_API1(m,p1) 3252 #define NFC_TRACE_API2(m,p1,p2) 3253 #define NFC_TRACE_API3(m,p1,p2,p3) 3254 #define NFC_TRACE_API4(m,p1,p2,p3,p4) 3255 #define NFC_TRACE_API5(m,p1,p2,p3,p4,p5) 3256 #define NFC_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3257 3258 #define NFC_TRACE_EVENT0(m) 3259 #define NFC_TRACE_EVENT1(m,p1) 3260 #define NFC_TRACE_EVENT2(m,p1,p2) 3261 #define NFC_TRACE_EVENT3(m,p1,p2,p3) 3262 #define NFC_TRACE_EVENT4(m,p1,p2,p3,p4) 3263 #define NFC_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3264 #define NFC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3265 3266 #define NFC_TRACE_DEBUG0(m) 3267 #define NFC_TRACE_DEBUG1(m,p1) 3268 #define NFC_TRACE_DEBUG2(m,p1,p2) 3269 #define NFC_TRACE_DEBUG3(m,p1,p2,p3) 3270 #define NFC_TRACE_DEBUG4(m,p1,p2,p3,p4) 3271 #define NFC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3272 #define NFC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3273 3274 #define NCI_TRACE_ERROR0(m) 3275 #define NCI_TRACE_ERROR1(m,p1) 3276 #define NCI_TRACE_ERROR2(m,p1,p2) 3277 #define NCI_TRACE_ERROR3(m,p1,p2,p3) 3278 #define NCI_TRACE_ERROR4(m,p1,p2,p3,p4) 3279 #define NCI_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3280 #define NCI_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3281 3282 #define NCI_TRACE_WARNING0(m) 3283 #define NCI_TRACE_WARNING1(m,p1) 3284 #define NCI_TRACE_WARNING2(m,p1,p2) 3285 #define NCI_TRACE_WARNING3(m,p1,p2,p3) 3286 #define NCI_TRACE_WARNING4(m,p1,p2,p3,p4) 3287 #define NCI_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3288 #define NCI_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3289 3290 #define NCI_TRACE_API0(m) 3291 #define NCI_TRACE_API1(m,p1) 3292 #define NCI_TRACE_API2(m,p1,p2) 3293 #define NCI_TRACE_API3(m,p1,p2,p3) 3294 #define NCI_TRACE_API4(m,p1,p2,p3,p4) 3295 #define NCI_TRACE_API5(m,p1,p2,p3,p4,p5) 3296 #define NCI_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3297 3298 #define NCI_TRACE_EVENT0(m) 3299 #define NCI_TRACE_EVENT1(m,p1) 3300 #define NCI_TRACE_EVENT2(m,p1,p2) 3301 #define NCI_TRACE_EVENT3(m,p1,p2,p3) 3302 #define NCI_TRACE_EVENT4(m,p1,p2,p3,p4) 3303 #define NCI_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3304 #define NCI_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3305 3306 #define NCI_TRACE_DEBUG0(m) 3307 #define NCI_TRACE_DEBUG1(m,p1) 3308 #define NCI_TRACE_DEBUG2(m,p1,p2) 3309 #define NCI_TRACE_DEBUG3(m,p1,p2,p3) 3310 #define NCI_TRACE_DEBUG4(m,p1,p2,p3,p4) 3311 #define NCI_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3312 #define NCI_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3313 3314 #define RW_TRACE_ERROR0(m) 3315 #define RW_TRACE_ERROR1(m,p1) 3316 #define RW_TRACE_ERROR2(m,p1,p2) 3317 #define RW_TRACE_ERROR3(m,p1,p2,p3) 3318 #define RW_TRACE_ERROR4(m,p1,p2,p3,p4) 3319 #define RW_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3320 #define RW_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3321 3322 #define RW_TRACE_WARNING0(m) 3323 #define RW_TRACE_WARNING1(m,p1) 3324 #define RW_TRACE_WARNING2(m,p1,p2) 3325 #define RW_TRACE_WARNING3(m,p1,p2,p3) 3326 #define RW_TRACE_WARNING4(m,p1,p2,p3,p4) 3327 #define RW_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3328 #define RW_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) } 3329 3330 #define RW_TRACE_API0(m) 3331 #define RW_TRACE_API1(m,p1) 3332 #define RW_TRACE_API2(m,p1,p2) 3333 #define RW_TRACE_API3(m,p1,p2,p3) 3334 #define RW_TRACE_API4(m,p1,p2,p3,p4) 3335 #define RW_TRACE_API5(m,p1,p2,p3,p4,p5) 3336 #define RW_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3337 3338 #define RW_TRACE_EVENT0(m) 3339 #define RW_TRACE_EVENT1(m,p1) 3340 #define RW_TRACE_EVENT2(m,p1,p2) 3341 #define RW_TRACE_EVENT3(m,p1,p2,p3) 3342 #define RW_TRACE_EVENT4(m,p1,p2,p3,p4) 3343 #define RW_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3344 #define RW_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3345 3346 #define RW_TRACE_DEBUG0(m) 3347 #define RW_TRACE_DEBUG1(m,p1) 3348 #define RW_TRACE_DEBUG2(m,p1,p2) 3349 #define RW_TRACE_DEBUG3(m,p1,p2,p3) 3350 #define RW_TRACE_DEBUG4(m,p1,p2,p3,p4) 3351 #define RW_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3352 #define RW_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3353 3354 #define CE_TRACE_ERROR0(m) 3355 #define CE_TRACE_ERROR1(m,p1) 3356 #define CE_TRACE_ERROR2(m,p1,p2) 3357 #define CE_TRACE_ERROR3(m,p1,p2,p3) 3358 #define CE_TRACE_ERROR4(m,p1,p2,p3,p4) 3359 #define CE_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3360 #define CE_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3361 3362 #define CE_TRACE_WARNING0(m) 3363 #define CE_TRACE_WARNING1(m,p1) 3364 #define CE_TRACE_WARNING2(m,p1,p2) 3365 #define CE_TRACE_WARNING3(m,p1,p2,p3) 3366 #define CE_TRACE_WARNING4(m,p1,p2,p3,p4) 3367 #define CE_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3368 #define CE_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3369 3370 #define CE_TRACE_API0(m) 3371 #define CE_TRACE_API1(m,p1) 3372 #define CE_TRACE_API2(m,p1,p2) 3373 #define CE_TRACE_API3(m,p1,p2,p3) 3374 #define CE_TRACE_API4(m,p1,p2,p3,p4) 3375 #define CE_TRACE_API5(m,p1,p2,p3,p4,p5) 3376 #define CE_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3377 3378 #define CE_TRACE_EVENT0(m) 3379 #define CE_TRACE_EVENT1(m,p1) 3380 #define CE_TRACE_EVENT2(m,p1,p2) 3381 #define CE_TRACE_EVENT3(m,p1,p2,p3) 3382 #define CE_TRACE_EVENT4(m,p1,p2,p3,p4) 3383 #define CE_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3384 #define CE_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3385 3386 #define CE_TRACE_DEBUG0(m) 3387 #define CE_TRACE_DEBUG1(m,p1) 3388 #define CE_TRACE_DEBUG2(m,p1,p2) 3389 #define CE_TRACE_DEBUG3(m,p1,p2,p3) 3390 #define CE_TRACE_DEBUG4(m,p1,p2,p3,p4) 3391 #define CE_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3392 #define CE_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3393 3394 #define NDEF_TRACE_ERROR0(m) 3395 #define NDEF_TRACE_ERROR1(m,p1) 3396 #define NDEF_TRACE_ERROR2(m,p1,p2) 3397 #define NDEF_TRACE_ERROR3(m,p1,p2,p3) 3398 #define NDEF_TRACE_ERROR4(m,p1,p2,p3,p4) 3399 #define NDEF_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3400 #define NDEF_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3401 3402 #define NDEF_TRACE_WARNING0(m) 3403 #define NDEF_TRACE_WARNING1(m,p1) 3404 #define NDEF_TRACE_WARNING2(m,p1,p2) 3405 #define NDEF_TRACE_WARNING3(m,p1,p2,p3) 3406 #define NDEF_TRACE_WARNING4(m,p1,p2,p3,p4) 3407 #define NDEF_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3408 #define NDEF_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3409 3410 #define NDEF_TRACE_API0(m) 3411 #define NDEF_TRACE_API1(m,p1) 3412 #define NDEF_TRACE_API2(m,p1,p2) 3413 #define NDEF_TRACE_API3(m,p1,p2,p3) 3414 #define NDEF_TRACE_API4(m,p1,p2,p3,p4) 3415 #define NDEF_TRACE_API5(m,p1,p2,p3,p4,p5) 3416 #define NDEF_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3417 3418 #define NDEF_TRACE_EVENT0(m) 3419 #define NDEF_TRACE_EVENT1(m,p1) 3420 #define NDEF_TRACE_EVENT2(m,p1,p2) 3421 #define NDEF_TRACE_EVENT3(m,p1,p2,p3) 3422 #define NDEF_TRACE_EVENT4(m,p1,p2,p3,p4) 3423 #define NDEF_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3424 #define NDEF_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3425 3426 #define NDEF_TRACE_DEBUG0(m) 3427 #define NDEF_TRACE_DEBUG1(m,p1) 3428 #define NDEF_TRACE_DEBUG2(m,p1,p2) 3429 #define NDEF_TRACE_DEBUG3(m,p1,p2,p3) 3430 #define NDEF_TRACE_DEBUG4(m,p1,p2,p3,p4) 3431 #define NDEF_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3432 #define NDEF_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3433 3434 /* Define tracing for the NFA unit 3435 */ 3436 #define NFA_TRACE_ERROR0(m) 3437 #define NFA_TRACE_ERROR1(m,p1) 3438 #define NFA_TRACE_ERROR2(m,p1,p2) 3439 #define NFA_TRACE_ERROR3(m,p1,p2,p3) 3440 #define NFA_TRACE_ERROR4(m,p1,p2,p3,p4) 3441 #define NFA_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3442 #define NFA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3443 3444 #define NFA_TRACE_WARNING0(m) 3445 #define NFA_TRACE_WARNING1(m,p1) 3446 #define NFA_TRACE_WARNING2(m,p1,p2) 3447 #define NFA_TRACE_WARNING3(m,p1,p2,p3) 3448 #define NFA_TRACE_WARNING4(m,p1,p2,p3,p4) 3449 #define NFA_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3450 #define NFA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3451 3452 #define NFA_TRACE_API0(m) 3453 #define NFA_TRACE_API1(m,p1) 3454 #define NFA_TRACE_API2(m,p1,p2) 3455 #define NFA_TRACE_API3(m,p1,p2,p3) 3456 #define NFA_TRACE_API4(m,p1,p2,p3,p4) 3457 #define NFA_TRACE_API5(m,p1,p2,p3,p4,p5) 3458 #define NFA_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3459 3460 #define NFA_TRACE_EVENT0(m) 3461 #define NFA_TRACE_EVENT1(m,p1) 3462 #define NFA_TRACE_EVENT2(m,p1,p2) 3463 #define NFA_TRACE_EVENT3(m,p1,p2,p3) 3464 #define NFA_TRACE_EVENT4(m,p1,p2,p3,p4) 3465 #define NFA_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3466 #define NFA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3467 3468 #define NFA_TRACE_DEBUG0(m) 3469 #define NFA_TRACE_DEBUG1(m,p1) 3470 #define NFA_TRACE_DEBUG2(m,p1,p2) 3471 #define NFA_TRACE_DEBUG3(m,p1,p2,p3) 3472 #define NFA_TRACE_DEBUG4(m,p1,p2,p3,p4) 3473 #define NFA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3474 #define NFA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3475 3476 3477 /* define traces for HID Host */ 3478 #define HIDH_TRACE_ERROR0(m) 3479 #define HIDH_TRACE_ERROR1(m,p1) 3480 #define HIDH_TRACE_ERROR2(m,p1,p2) 3481 #define HIDH_TRACE_ERROR3(m,p1,p2,p3) 3482 #define HIDH_TRACE_ERROR4(m,p1,p2,p3,p4) 3483 #define HIDH_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3484 #define HIDH_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3485 3486 #define HIDH_TRACE_WARNING0(m) 3487 #define HIDH_TRACE_WARNING1(m,p1) 3488 #define HIDH_TRACE_WARNING2(m,p1,p2) 3489 #define HIDH_TRACE_WARNING3(m,p1,p2,p3) 3490 #define HIDH_TRACE_WARNING4(m,p1,p2,p3,p4) 3491 #define HIDH_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3492 #define HIDH_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3493 3494 #define HIDH_TRACE_API0(m) 3495 #define HIDH_TRACE_API1(m,p1) 3496 #define HIDH_TRACE_API2(m,p1,p2) 3497 #define HIDH_TRACE_API3(m,p1,p2,p3) 3498 #define HIDH_TRACE_API4(m,p1,p2,p3,p4) 3499 #define HIDH_TRACE_API5(m,p1,p2,p3,p4,p5) 3500 #define HIDH_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3501 3502 #define HIDH_TRACE_EVENT0(m) 3503 #define HIDH_TRACE_EVENT1(m,p1) 3504 #define HIDH_TRACE_EVENT2(m,p1,p2) 3505 #define HIDH_TRACE_EVENT3(m,p1,p2,p3) 3506 #define HIDH_TRACE_EVENT4(m,p1,p2,p3,p4) 3507 #define HIDH_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3508 #define HIDH_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3509 3510 #define HIDH_TRACE_DEBUG0(m) 3511 #define HIDH_TRACE_DEBUG1(m,p1) 3512 #define HIDH_TRACE_DEBUG2(m,p1,p2) 3513 #define HIDH_TRACE_DEBUG3(m,p1,p2,p3) 3514 #define HIDH_TRACE_DEBUG4(m,p1,p2,p3,p4) 3515 #define HIDH_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3516 #define HIDH_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3517 3518 /* define traces for HID Device */ 3519 #define HIDD_TRACE_ERROR0(m) 3520 #define HIDD_TRACE_ERROR1(m,p1) 3521 #define HIDD_TRACE_ERROR2(m,p1,p2) 3522 #define HIDD_TRACE_ERROR3(m,p1,p2,p3) 3523 #define HIDD_TRACE_ERROR4(m,p1,p2,p3,p4) 3524 #define HIDD_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3525 #define HIDD_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3526 3527 #define HIDD_TRACE_WARNING0(m) 3528 #define HIDD_TRACE_WARNING1(m,p1) 3529 #define HIDD_TRACE_WARNING2(m,p1,p2) 3530 #define HIDD_TRACE_WARNING3(m,p1,p2,p3) 3531 #define HIDD_TRACE_WARNING4(m,p1,p2,p3,p4) 3532 #define HIDD_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3533 #define HIDD_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3534 3535 #define HIDD_TRACE_API0(m) 3536 #define HIDD_TRACE_API1(m,p1) 3537 #define HIDD_TRACE_API2(m,p1,p2) 3538 #define HIDD_TRACE_API3(m,p1,p2,p3) 3539 #define HIDD_TRACE_API4(m,p1,p2,p3,p4) 3540 #define HIDD_TRACE_API5(m,p1,p2,p3,p4,p5) 3541 #define HIDD_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3542 3543 #define HIDD_TRACE_EVENT0(m) 3544 #define HIDD_TRACE_EVENT1(m,p1) 3545 #define HIDD_TRACE_EVENT2(m,p1,p2) 3546 #define HIDD_TRACE_EVENT3(m,p1,p2,p3) 3547 #define HIDD_TRACE_EVENT4(m,p1,p2,p3,p4) 3548 #define HIDD_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3549 #define HIDD_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3550 3551 #define HIDD_TRACE_DEBUG0(m) 3552 #define HIDD_TRACE_DEBUG1(m,p1) 3553 #define HIDD_TRACE_DEBUG2(m,p1,p2) 3554 #define HIDD_TRACE_DEBUG3(m,p1,p2,p3) 3555 #define HIDD_TRACE_DEBUG4(m,p1,p2,p3,p4) 3556 #define HIDD_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3557 #define HIDD_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3558 3559 /* define traces for DUN */ 3560 3561 #define DUN_TRACE_ERROR0(m) 3562 #define DUN_TRACE_ERROR1(m,p1) 3563 #define DUN_TRACE_ERROR2(m,p1,p2) 3564 #define DUN_TRACE_ERROR3(m,p1,p2,p3) 3565 #define DUN_TRACE_ERROR4(m,p1,p2,p3,p4) 3566 #define DUN_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3567 #define DUN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3568 3569 #define DUN_TRACE_WARNING0(m) 3570 #define DUN_TRACE_WARNING1(m,p1) 3571 #define DUN_TRACE_WARNING2(m,p1,p2) 3572 #define DUN_TRACE_WARNING3(m,p1,p2,p3) 3573 #define DUN_TRACE_WARNING4(m,p1,p2,p3,p4) 3574 #define DUN_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3575 #define DUN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3576 3577 #define DUN_TRACE_API0(m) 3578 #define DUN_TRACE_API1(m,p1) 3579 #define DUN_TRACE_API2(m,p1,p2) 3580 #define DUN_TRACE_API3(m,p1,p2,p3) 3581 #define DUN_TRACE_API4(m,p1,p2,p3,p4) 3582 #define DUN_TRACE_API5(m,p1,p2,p3,p4,p5) 3583 #define DUN_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3584 3585 #define DUN_TRACE_EVENT0(m) 3586 #define DUN_TRACE_EVENT1(m,p1) 3587 #define DUN_TRACE_EVENT2(m,p1,p2) 3588 #define DUN_TRACE_EVENT3(m,p1,p2,p3) 3589 #define DUN_TRACE_EVENT4(m,p1,p2,p3,p4) 3590 #define DUN_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3591 #define DUN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3592 3593 #define DUN_TRACE_DEBUG0(m) 3594 #define DUN_TRACE_DEBUG1(m,p1) 3595 #define DUN_TRACE_DEBUG2(m,p1,p2) 3596 #define DUN_TRACE_DEBUG3(m,p1,p2,p3) 3597 #define DUN_TRACE_DEBUG4(m,p1,p2,p3,p4) 3598 #define DUN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3599 #define DUN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3600 3601 /* define traces for HCRP */ 3602 3603 #define HCRP_TRACE_ERROR0(m) 3604 #define HCRP_TRACE_ERROR1(m,p1) 3605 #define HCRP_TRACE_ERROR2(m,p1,p2) 3606 #define HCRP_TRACE_ERROR3(m,p1,p2,p3) 3607 #define HCRP_TRACE_ERROR4(m,p1,p2,p3,p4) 3608 #define HCRP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3609 #define HCRP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3610 3611 #define HCRP_TRACE_WARNING0(m) 3612 #define HCRP_TRACE_WARNING1(m,p1) 3613 #define HCRP_TRACE_WARNING2(m,p1,p2) 3614 #define HCRP_TRACE_WARNING3(m,p1,p2,p3) 3615 #define HCRP_TRACE_WARNING4(m,p1,p2,p3,p4) 3616 #define HCRP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3617 #define HCRP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3618 3619 #define HCRP_TRACE_API0(m) 3620 #define HCRP_TRACE_API1(m,p1) 3621 #define HCRP_TRACE_API2(m,p1,p2) 3622 #define HCRP_TRACE_API3(m,p1,p2,p3) 3623 #define HCRP_TRACE_API4(m,p1,p2,p3,p4) 3624 #define HCRP_TRACE_API5(m,p1,p2,p3,p4,p5) 3625 #define HCRP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3626 3627 #define HCRP_TRACE_EVENT0(m) 3628 #define HCRP_TRACE_EVENT1(m,p1) 3629 #define HCRP_TRACE_EVENT2(m,p1,p2) 3630 #define HCRP_TRACE_EVENT3(m,p1,p2,p3) 3631 #define HCRP_TRACE_EVENT4(m,p1,p2,p3,p4) 3632 #define HCRP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3633 #define HCRP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3634 3635 #define HCRP_TRACE_DEBUG0(m) 3636 #define HCRP_TRACE_DEBUG1(m,p1) 3637 #define HCRP_TRACE_DEBUG2(m,p1,p2) 3638 #define HCRP_TRACE_DEBUG3(m,p1,p2,p3) 3639 #define HCRP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3640 #define HCRP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3641 #define HCRP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3642 3643 3644 /* define traces for HCRP */ 3645 3646 #define HCRPM_TRACE_ERROR0(m) 3647 #define HCRPM_TRACE_ERROR1(m,p1) 3648 #define HCRPM_TRACE_ERROR2(m,p1,p2) 3649 #define HCRPM_TRACE_ERROR3(m,p1,p2,p3) 3650 #define HCRPM_TRACE_ERROR4(m,p1,p2,p3,p4) 3651 #define HCRPM_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3652 #define HCRPM_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3653 3654 #define HCRPM_TRACE_WARNING0(m) 3655 #define HCRPM_TRACE_WARNING1(m,p1) 3656 #define HCRPM_TRACE_WARNING2(m,p1,p2) 3657 #define HCRPM_TRACE_WARNING3(m,p1,p2,p3) 3658 #define HCRPM_TRACE_WARNING4(m,p1,p2,p3,p4) 3659 #define HCRPM_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3660 #define HCRPM_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3661 3662 #define HCRPM_TRACE_API0(m) 3663 #define HCRPM_TRACE_API1(m,p1) 3664 #define HCRPM_TRACE_API2(m,p1,p2) 3665 #define HCRPM_TRACE_API3(m,p1,p2,p3) 3666 #define HCRPM_TRACE_API4(m,p1,p2,p3,p4) 3667 #define HCRPM_TRACE_API5(m,p1,p2,p3,p4,p5) 3668 #define HCRPM_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3669 3670 #define HCRPM_TRACE_EVENT0(m) 3671 #define HCRPM_TRACE_EVENT1(m,p1) 3672 #define HCRPM_TRACE_EVENT2(m,p1,p2) 3673 #define HCRPM_TRACE_EVENT3(m,p1,p2,p3) 3674 #define HCRPM_TRACE_EVENT4(m,p1,p2,p3,p4) 3675 #define HCRPM_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3676 #define HCRPM_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3677 3678 #define HCRPM_TRACE_DEBUG0(m) 3679 #define HCRPM_TRACE_DEBUG1(m,p1) 3680 #define HCRPM_TRACE_DEBUG2(m,p1,p2) 3681 #define HCRPM_TRACE_DEBUG3(m,p1,p2,p3) 3682 #define HCRPM_TRACE_DEBUG4(m,p1,p2,p3,p4) 3683 #define HCRPM_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3684 #define HCRPM_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3685 3686 /* define traces for RPC */ 3687 3688 #define RPC_TRACE_ERROR0(m) 3689 #define RPC_TRACE_ERROR1(m,p1) 3690 #define RPC_TRACE_ERROR2(m,p1,p2) 3691 #define RPC_TRACE_ERROR3(m,p1,p2,p3) 3692 #define RPC_TRACE_ERROR4(m,p1,p2,p3,p4) 3693 #define RPC_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3694 #define RPC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3695 3696 #define RPC_TRACE_WARNING0(m) 3697 #define RPC_TRACE_WARNING1(m,p1) 3698 #define RPC_TRACE_WARNING2(m,p1,p2) 3699 #define RPC_TRACE_WARNING3(m,p1,p2,p3) 3700 #define RPC_TRACE_WARNING4(m,p1,p2,p3,p4) 3701 #define RPC_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3702 #define RPC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3703 3704 #define RPC_TRACE_API0(m) 3705 #define RPC_TRACE_API1(m,p1) 3706 #define RPC_TRACE_API2(m,p1,p2) 3707 #define RPC_TRACE_API3(m,p1,p2,p3) 3708 #define RPC_TRACE_API4(m,p1,p2,p3,p4) 3709 #define RPC_TRACE_API5(m,p1,p2,p3,p4,p5) 3710 #define RPC_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3711 3712 #define RPC_TRACE_EVENT0(m) 3713 #define RPC_TRACE_EVENT1(m,p1) 3714 #define RPC_TRACE_EVENT2(m,p1,p2) 3715 #define RPC_TRACE_EVENT3(m,p1,p2,p3) 3716 #define RPC_TRACE_EVENT4(m,p1,p2,p3,p4) 3717 #define RPC_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3718 #define RPC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3719 3720 #define RPC_TRACE_DEBUG0(m) 3721 #define RPC_TRACE_DEBUG1(m,p1) 3722 #define RPC_TRACE_DEBUG2(m,p1,p2) 3723 #define RPC_TRACE_DEBUG3(m,p1,p2,p3) 3724 #define RPC_TRACE_DEBUG4(m,p1,p2,p3,p4) 3725 #define RPC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3726 #define RPC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3727 3728 /* define traces for BNEP */ 3729 3730 #define BNEP_TRACE_ERROR0(m) 3731 #define BNEP_TRACE_ERROR1(m,p1) 3732 #define BNEP_TRACE_ERROR2(m,p1,p2) 3733 #define BNEP_TRACE_ERROR3(m,p1,p2,p3) 3734 #define BNEP_TRACE_ERROR4(m,p1,p2,p3,p4) 3735 #define BNEP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3736 #define BNEP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3737 3738 #define BNEP_TRACE_WARNING0(m) 3739 #define BNEP_TRACE_WARNING1(m,p1) 3740 #define BNEP_TRACE_WARNING2(m,p1,p2) 3741 #define BNEP_TRACE_WARNING3(m,p1,p2,p3) 3742 #define BNEP_TRACE_WARNING4(m,p1,p2,p3,p4) 3743 #define BNEP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3744 #define BNEP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3745 3746 #define BNEP_TRACE_API0(m) 3747 #define BNEP_TRACE_API1(m,p1) 3748 #define BNEP_TRACE_API2(m,p1,p2) 3749 #define BNEP_TRACE_API3(m,p1,p2,p3) 3750 #define BNEP_TRACE_API4(m,p1,p2,p3,p4) 3751 #define BNEP_TRACE_API5(m,p1,p2,p3,p4,p5) 3752 #define BNEP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3753 3754 #define BNEP_TRACE_EVENT0(m) 3755 #define BNEP_TRACE_EVENT1(m,p1) 3756 #define BNEP_TRACE_EVENT2(m,p1,p2) 3757 #define BNEP_TRACE_EVENT3(m,p1,p2,p3) 3758 #define BNEP_TRACE_EVENT4(m,p1,p2,p3,p4) 3759 #define BNEP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3760 #define BNEP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3761 3762 #define BNEP_TRACE_DEBUG0(m) 3763 #define BNEP_TRACE_DEBUG1(m,p1) 3764 #define BNEP_TRACE_DEBUG2(m,p1,p2) 3765 #define BNEP_TRACE_DEBUG3(m,p1,p2,p3) 3766 #define BNEP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3767 #define BNEP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3768 #define BNEP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3769 3770 /* hid module traces */ 3771 3772 #define MSKB_TRACE_0(m) 3773 #define MSKB_TRACE_1(m,p1) 3774 #define MSKB_TRACE_2(m,p1,p2) 3775 #define MSKB_TRACE_3(m,p1,p2,p3) 3776 #define MSKB_TRACE_4(m,p1,p2,p3,p4) 3777 #define MSKB_TRACE_5(m,p1,p2,p3,p4,p5) 3778 #define MSKB_TRACE_6(m,p1,p2,p3,p4,p5,p6) 3779 3780 #define MSKB_DEBUG_0(m) 3781 #define MSKB_DEBUG_1(m,p1) 3782 #define MSKB_DEBUG_2(m,p1,p2) 3783 #define MSKB_DEBUG_3(m,p1,p2,p3) 3784 #define MSKB_DEBUG_4(m,p1,p2,p3,p4) 3785 #define MSKB_DEBUG_5(m,p1,p2,p3,p4,p5) 3786 #define MSKB_DEBUG_6(m,p1,p2,p3,p4,p5,p6) 3787 3788 #define MSKB_ERROR_0(m) 3789 #define MSKB_ERROR_1(m,p1) 3790 #define MSKB_ERROR_2(m,p1,p2) 3791 #define MSKB_ERROR_3(m,p1,p2,p3) 3792 #define MSKB_ERROR_4(m,p1,p2,p3,p4) 3793 #define MSKB_ERROR_5(m,p1,p2,p3,p4,p5) 3794 #define MSKB_ERROR_6(m,p1,p2,p3,p4,p5,p6) 3795 3796 /* define traces for PAN */ 3797 3798 #define PAN_TRACE_ERROR0(m) 3799 #define PAN_TRACE_ERROR1(m,p1) 3800 #define PAN_TRACE_ERROR2(m,p1,p2) 3801 #define PAN_TRACE_ERROR3(m,p1,p2,p3) 3802 #define PAN_TRACE_ERROR4(m,p1,p2,p3,p4) 3803 #define PAN_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3804 #define PAN_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3805 3806 #define PAN_TRACE_WARNING0(m) 3807 #define PAN_TRACE_WARNING1(m,p1) 3808 #define PAN_TRACE_WARNING2(m,p1,p2) 3809 #define PAN_TRACE_WARNING3(m,p1,p2,p3) 3810 #define PAN_TRACE_WARNING4(m,p1,p2,p3,p4) 3811 #define PAN_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3812 #define PAN_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3813 3814 #define PAN_TRACE_API0(m) 3815 #define PAN_TRACE_API1(m,p1) 3816 #define PAN_TRACE_API2(m,p1,p2) 3817 #define PAN_TRACE_API3(m,p1,p2,p3) 3818 #define PAN_TRACE_API4(m,p1,p2,p3,p4) 3819 #define PAN_TRACE_API5(m,p1,p2,p3,p4,p5) 3820 #define PAN_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3821 3822 #define PAN_TRACE_EVENT0(m) 3823 #define PAN_TRACE_EVENT1(m,p1) 3824 #define PAN_TRACE_EVENT2(m,p1,p2) 3825 #define PAN_TRACE_EVENT3(m,p1,p2,p3) 3826 #define PAN_TRACE_EVENT4(m,p1,p2,p3,p4) 3827 #define PAN_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3828 #define PAN_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3829 3830 #define PAN_TRACE_DEBUG0(m) 3831 #define PAN_TRACE_DEBUG1(m,p1) 3832 #define PAN_TRACE_DEBUG2(m,p1,p2) 3833 #define PAN_TRACE_DEBUG3(m,p1,p2,p3) 3834 #define PAN_TRACE_DEBUG4(m,p1,p2,p3,p4) 3835 #define PAN_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3836 #define PAN_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3837 3838 /* define traces for SIM */ 3839 3840 #define SAP_TRACE_ERROR0(m) 3841 #define SAP_TRACE_ERROR1(m,p1) 3842 #define SAP_TRACE_ERROR2(m,p1,p2) 3843 #define SAP_TRACE_ERROR3(m,p1,p2,p3) 3844 #define SAP_TRACE_ERROR4(m,p1,p2,p3,p4) 3845 #define SAP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3846 #define SAP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3847 3848 #define SAP_TRACE_WARNING0(m) 3849 #define SAP_TRACE_WARNING1(m,p1) 3850 #define SAP_TRACE_WARNING2(m,p1,p2) 3851 #define SAP_TRACE_WARNING3(m,p1,p2,p3) 3852 #define SAP_TRACE_WARNING4(m,p1,p2,p3,p4) 3853 #define SAP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3854 #define SAP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3855 3856 #define SAP_TRACE_API0(m) 3857 #define SAP_TRACE_API1(m,p1) 3858 #define SAP_TRACE_API2(m,p1,p2) 3859 #define SAP_TRACE_API3(m,p1,p2,p3) 3860 #define SAP_TRACE_API4(m,p1,p2,p3,p4) 3861 #define SAP_TRACE_API5(m,p1,p2,p3,p4,p5) 3862 #define SAP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3863 3864 #define SAP_TRACE_EVENT0(m) 3865 #define SAP_TRACE_EVENT1(m,p1) 3866 #define SAP_TRACE_EVENT2(m,p1,p2) 3867 #define SAP_TRACE_EVENT3(m,p1,p2,p3) 3868 #define SAP_TRACE_EVENT4(m,p1,p2,p3,p4) 3869 #define SAP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3870 #define SAP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3871 3872 #define SAP_TRACE_DEBUG0(m) 3873 #define SAP_TRACE_DEBUG1(m,p1) 3874 #define SAP_TRACE_DEBUG2(m,p1,p2) 3875 #define SAP_TRACE_DEBUG3(m,p1,p2,p3) 3876 #define SAP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3877 #define SAP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3878 #define SAP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3879 3880 /* Define tracing for the OPP profile 3881 */ 3882 #define OPP_TRACE_ERROR0(m) 3883 #define OPP_TRACE_ERROR1(m,p1) 3884 #define OPP_TRACE_ERROR2(m,p1,p2) 3885 #define OPP_TRACE_ERROR3(m,p1,p2,p3) 3886 #define OPP_TRACE_ERROR4(m,p1,p2,p3,p4) 3887 #define OPP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3888 #define OPP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3889 3890 #define OPP_TRACE_WARNING0(m) 3891 #define OPP_TRACE_WARNING1(m,p1) 3892 #define OPP_TRACE_WARNING2(m,p1,p2) 3893 #define OPP_TRACE_WARNING3(m,p1,p2,p3) 3894 #define OPP_TRACE_WARNING4(m,p1,p2,p3,p4) 3895 #define OPP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3896 #define OPP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3897 3898 #define OPP_TRACE_EVENT0(m) 3899 #define OPP_TRACE_EVENT1(m,p1) 3900 #define OPP_TRACE_EVENT2(m,p1,p2) 3901 #define OPP_TRACE_EVENT3(m,p1,p2,p3) 3902 #define OPP_TRACE_EVENT4(m,p1,p2,p3,p4) 3903 #define OPP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3904 #define OPP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3905 3906 #define OPP_TRACE_DEBUG0(m) 3907 #define OPP_TRACE_DEBUG1(m,p1) 3908 #define OPP_TRACE_DEBUG2(m,p1,p2) 3909 #define OPP_TRACE_DEBUG3(m,p1,p2,p3) 3910 #define OPP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3911 #define OPP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3912 #define OPP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3913 3914 #define OPP_TRACE_API0(m) 3915 #define OPP_TRACE_API1(m,p1) 3916 #define OPP_TRACE_API2(m,p1,p2) 3917 #define OPP_TRACE_API3(m,p1,p2,p3) 3918 #define OPP_TRACE_API4(m,p1,p2,p3,p4) 3919 #define OPP_TRACE_API5(m,p1,p2,p3,p4,p5) 3920 #define OPP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3921 3922 /* Define tracing for the FTP profile 3923 */ 3924 #define FTP_TRACE_ERROR0(m) 3925 #define FTP_TRACE_ERROR1(m,p1) 3926 #define FTP_TRACE_ERROR2(m,p1,p2) 3927 #define FTP_TRACE_ERROR3(m,p1,p2,p3) 3928 #define FTP_TRACE_ERROR4(m,p1,p2,p3,p4) 3929 #define FTP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3930 #define FTP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3931 3932 #define FTP_TRACE_WARNING0(m) 3933 #define FTP_TRACE_WARNING1(m,p1) 3934 #define FTP_TRACE_WARNING2(m,p1,p2) 3935 #define FTP_TRACE_WARNING3(m,p1,p2,p3) 3936 #define FTP_TRACE_WARNING4(m,p1,p2,p3,p4) 3937 #define FTP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3938 #define FTP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3939 3940 #define FTP_TRACE_EVENT0(m) 3941 #define FTP_TRACE_EVENT1(m,p1) 3942 #define FTP_TRACE_EVENT2(m,p1,p2) 3943 #define FTP_TRACE_EVENT3(m,p1,p2,p3) 3944 #define FTP_TRACE_EVENT4(m,p1,p2,p3,p4) 3945 #define FTP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3946 #define FTP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3947 3948 #define FTP_TRACE_DEBUG0(m) 3949 #define FTP_TRACE_DEBUG1(m,p1) 3950 #define FTP_TRACE_DEBUG2(m,p1,p2) 3951 #define FTP_TRACE_DEBUG3(m,p1,p2,p3) 3952 #define FTP_TRACE_DEBUG4(m,p1,p2,p3,p4) 3953 #define FTP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3954 #define FTP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3955 3956 #define FTP_TRACE_API0(m) 3957 #define FTP_TRACE_API1(m,p1) 3958 #define FTP_TRACE_API2(m,p1,p2) 3959 #define FTP_TRACE_API3(m,p1,p2,p3) 3960 #define FTP_TRACE_API4(m,p1,p2,p3,p4) 3961 #define FTP_TRACE_API5(m,p1,p2,p3,p4,p5) 3962 #define FTP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 3963 3964 3965 /* Define tracing for the A2DP profile 3966 */ 3967 #define A2D_TRACE_ERROR0(m) 3968 #define A2D_TRACE_ERROR1(m,p1) 3969 #define A2D_TRACE_ERROR2(m,p1,p2) 3970 #define A2D_TRACE_ERROR3(m,p1,p2,p3) 3971 #define A2D_TRACE_ERROR4(m,p1,p2,p3,p4) 3972 #define A2D_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 3973 #define A2D_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 3974 3975 #define A2D_TRACE_WARNING0(m) 3976 #define A2D_TRACE_WARNING1(m,p1) 3977 #define A2D_TRACE_WARNING2(m,p1,p2) 3978 #define A2D_TRACE_WARNING3(m,p1,p2,p3) 3979 #define A2D_TRACE_WARNING4(m,p1,p2,p3,p4) 3980 #define A2D_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 3981 #define A2D_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 3982 3983 #define A2D_TRACE_EVENT0(m) 3984 #define A2D_TRACE_EVENT1(m,p1) 3985 #define A2D_TRACE_EVENT2(m,p1,p2) 3986 #define A2D_TRACE_EVENT3(m,p1,p2,p3) 3987 #define A2D_TRACE_EVENT4(m,p1,p2,p3,p4) 3988 #define A2D_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 3989 #define A2D_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 3990 3991 #define A2D_TRACE_DEBUG0(m) 3992 #define A2D_TRACE_DEBUG1(m,p1) 3993 #define A2D_TRACE_DEBUG2(m,p1,p2) 3994 #define A2D_TRACE_DEBUG3(m,p1,p2,p3) 3995 #define A2D_TRACE_DEBUG4(m,p1,p2,p3,p4) 3996 #define A2D_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 3997 #define A2D_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 3998 3999 #define A2D_TRACE_API0(m) 4000 #define A2D_TRACE_API1(m,p1) 4001 #define A2D_TRACE_API2(m,p1,p2) 4002 #define A2D_TRACE_API3(m,p1,p2,p3) 4003 #define A2D_TRACE_API4(m,p1,p2,p3,p4) 4004 #define A2D_TRACE_API5(m,p1,p2,p3,p4,p5) 4005 #define A2D_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4006 4007 /* Define tracing for the VDP profile 4008 */ 4009 #define VDP_TRACE_ERROR0(m) 4010 #define VDP_TRACE_ERROR1(m,p1) 4011 #define VDP_TRACE_ERROR2(m,p1,p2) 4012 #define VDP_TRACE_ERROR3(m,p1,p2,p3) 4013 #define VDP_TRACE_ERROR4(m,p1,p2,p3,p4) 4014 #define VDP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4015 #define VDP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4016 4017 #define VDP_TRACE_WARNING0(m) 4018 #define VDP_TRACE_WARNING1(m,p1) 4019 #define VDP_TRACE_WARNING2(m,p1,p2) 4020 #define VDP_TRACE_WARNING3(m,p1,p2,p3) 4021 #define VDP_TRACE_WARNING4(m,p1,p2,p3,p4) 4022 #define VDP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4023 #define VDP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4024 4025 #define VDP_TRACE_EVENT0(m) 4026 #define VDP_TRACE_EVENT1(m,p1) 4027 #define VDP_TRACE_EVENT2(m,p1,p2) 4028 #define VDP_TRACE_EVENT3(m,p1,p2,p3) 4029 #define VDP_TRACE_EVENT4(m,p1,p2,p3,p4) 4030 #define VDP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4031 #define VDP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4032 4033 #define VDP_TRACE_DEBUG0(m) 4034 #define VDP_TRACE_DEBUG1(m,p1) 4035 #define VDP_TRACE_DEBUG2(m,p1,p2) 4036 #define VDP_TRACE_DEBUG3(m,p1,p2,p3) 4037 #define VDP_TRACE_DEBUG4(m,p1,p2,p3,p4) 4038 #define VDP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4039 #define VDP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4040 4041 #define VDP_TRACE_API0(m) 4042 #define VDP_TRACE_API1(m,p1) 4043 #define VDP_TRACE_API2(m,p1,p2) 4044 #define VDP_TRACE_API3(m,p1,p2,p3) 4045 #define VDP_TRACE_API4(m,p1,p2,p3,p4) 4046 #define VDP_TRACE_API5(m,p1,p2,p3,p4,p5) 4047 #define VDP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4048 4049 4050 /* Define tracing for the LM unit 4051 */ 4052 #define LMP_TRACE_ERROR0(m) 4053 #define LMP_TRACE_ERROR1(m,p1) 4054 #define LMP_TRACE_ERROR2(m,p1,p2) 4055 #define LMP_TRACE_ERROR3(m,p1,p2,p3) 4056 #define LMP_TRACE_ERROR4(m,p1,p2,p3,p4) 4057 #define LMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4058 #define LMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4059 4060 #define LMP_TRACE_WARNING0(m) 4061 #define LMP_TRACE_WARNING1(m,p1) 4062 #define LMP_TRACE_WARNING2(m,p1,p2) 4063 #define LMP_TRACE_WARNING3(m,p1,p2,p3) 4064 #define LMP_TRACE_WARNING4(m,p1,p2,p3,p4) 4065 #define LMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4066 #define LMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4067 4068 #define LMP_TRACE_EVENT0(m) 4069 #define LMP_TRACE_EVENT1(m,p1) 4070 #define LMP_TRACE_EVENT2(m,p1,p2) 4071 #define LMP_TRACE_EVENT3(m,p1,p2,p3) 4072 #define LMP_TRACE_EVENT4(m,p1,p2,p3,p4) 4073 #define LMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4074 #define LMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4075 4076 #define LMP_TRACE_DEBUG0(m) 4077 #define LMP_TRACE_DEBUG1(m,p1) 4078 #define LMP_TRACE_DEBUG2(m,p1,p2) 4079 #define LMP_TRACE_DEBUG3(m,p1,p2,p3) 4080 #define LMP_TRACE_DEBUG4(m,p1,p2,p3,p4) 4081 #define LMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4082 #define LMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4083 4084 /* Define tracing for the LC unit 4085 */ 4086 #define LC_TRACE_ERROR0(m) 4087 #define LC_TRACE_ERROR1(m,p1) 4088 #define LC_TRACE_ERROR2(m,p1,p2) 4089 #define LC_TRACE_ERROR3(m,p1,p2,p3) 4090 #define LC_TRACE_ERROR4(m,p1,p2,p3,p4) 4091 #define LC_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4092 #define LC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4093 4094 #define LC_TRACE_WARNING0(m) 4095 #define LC_TRACE_WARNING1(m,p1) 4096 #define LC_TRACE_WARNING2(m,p1,p2) 4097 #define LC_TRACE_WARNING3(m,p1,p2,p3) 4098 #define LC_TRACE_WARNING4(m,p1,p2,p3,p4) 4099 #define LC_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4100 #define LC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4101 4102 #define LC_TRACE_EVENT0(m) 4103 #define LC_TRACE_EVENT1(m,p1) 4104 #define LC_TRACE_EVENT2(m,p1,p2) 4105 #define LC_TRACE_EVENT3(m,p1,p2,p3) 4106 #define LC_TRACE_EVENT4(m,p1,p2,p3,p4) 4107 #define LC_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4108 #define LC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4109 4110 #define LC_TRACE_DEBUG0(m) 4111 #define LC_TRACE_DEBUG1(m,p1) 4112 #define LC_TRACE_DEBUG2(m,p1,p2) 4113 #define LC_TRACE_DEBUG3(m,p1,p2,p3) 4114 #define LC_TRACE_DEBUG4(m,p1,p2,p3,p4) 4115 #define LC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4116 #define LC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4117 4118 #define SDA_TRACE_ERROR0(m) 4119 #define SDA_TRACE_ERROR1(m,p1) 4120 #define SDA_TRACE_ERROR2(m,p1,p2) 4121 #define SDA_TRACE_ERROR3(m,p1,p2,p3) 4122 #define SDA_TRACE_ERROR4(m,p1,p2,p3,p4) 4123 #define SDA_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4124 #define SDA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4125 4126 #define SDA_TRACE_WARNING0(m) 4127 #define SDA_TRACE_WARNING1(m,p1) 4128 #define SDA_TRACE_WARNING2(m,p1,p2) 4129 #define SDA_TRACE_WARNING3(m,p1,p2,p3) 4130 #define SDA_TRACE_WARNING4(m,p1,p2,p3,p4) 4131 #define SDA_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4132 #define SDA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4133 4134 #define SDA_TRACE_EVENT0(m) 4135 #define SDA_TRACE_EVENT1(m,p1) 4136 #define SDA_TRACE_EVENT2(m,p1,p2) 4137 #define SDA_TRACE_EVENT3(m,p1,p2,p3) 4138 #define SDA_TRACE_EVENT4(m,p1,p2,p3,p4) 4139 #define SDA_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4140 #define SDA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4141 4142 #define SDA_TRACE_DEBUG0(m) 4143 #define SDA_TRACE_DEBUG1(m,p1) 4144 #define SDA_TRACE_DEBUG2(m,p1,p2) 4145 #define SDA_TRACE_DEBUG3(m,p1,p2,p3) 4146 #define SDA_TRACE_DEBUG4(m,p1,p2,p3,p4) 4147 #define SDA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4148 #define SDA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4149 4150 /* AVDTP 4151 */ 4152 #define AVDT_TRACE_ERROR0(m) 4153 #define AVDT_TRACE_ERROR1(m,p1) 4154 #define AVDT_TRACE_ERROR2(m,p1,p2) 4155 #define AVDT_TRACE_ERROR3(m,p1,p2,p3) 4156 #define AVDT_TRACE_ERROR4(m,p1,p2,p3,p4) 4157 #define AVDT_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4158 #define AVDT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4159 4160 #define AVDT_TRACE_WARNING0(m) 4161 #define AVDT_TRACE_WARNING1(m,p1) 4162 #define AVDT_TRACE_WARNING2(m,p1,p2) 4163 #define AVDT_TRACE_WARNING3(m,p1,p2,p3) 4164 #define AVDT_TRACE_WARNING4(m,p1,p2,p3,p4) 4165 #define AVDT_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4166 #define AVDT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4167 4168 #define AVDT_TRACE_EVENT0(m) 4169 #define AVDT_TRACE_EVENT1(m,p1) 4170 #define AVDT_TRACE_EVENT2(m,p1,p2) 4171 #define AVDT_TRACE_EVENT3(m,p1,p2,p3) 4172 #define AVDT_TRACE_EVENT4(m,p1,p2,p3,p4) 4173 #define AVDT_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4174 #define AVDT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4175 4176 #define AVDT_TRACE_DEBUG0(m) 4177 #define AVDT_TRACE_DEBUG1(m,p1) 4178 #define AVDT_TRACE_DEBUG2(m,p1,p2) 4179 #define AVDT_TRACE_DEBUG3(m,p1,p2,p3) 4180 #define AVDT_TRACE_DEBUG4(m,p1,p2,p3,p4) 4181 #define AVDT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4182 #define AVDT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4183 4184 #define AVDT_TRACE_API0(m) 4185 #define AVDT_TRACE_API1(m,p1) 4186 #define AVDT_TRACE_API2(m,p1,p2) 4187 #define AVDT_TRACE_API3(m,p1,p2,p3) 4188 #define AVDT_TRACE_API4(m,p1,p2,p3,p4) 4189 #define AVDT_TRACE_API5(m,p1,p2,p3,p4,p5) 4190 #define AVDT_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4191 4192 /* Define tracing for the AVCTP protocol 4193 */ 4194 #define AVCT_TRACE_ERROR0(m) 4195 #define AVCT_TRACE_ERROR1(m,p1) 4196 #define AVCT_TRACE_ERROR2(m,p1,p2) 4197 #define AVCT_TRACE_ERROR3(m,p1,p2,p3) 4198 #define AVCT_TRACE_ERROR4(m,p1,p2,p3,p4) 4199 #define AVCT_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4200 #define AVCT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4201 4202 #define AVCT_TRACE_WARNING0(m) 4203 #define AVCT_TRACE_WARNING1(m,p1) 4204 #define AVCT_TRACE_WARNING2(m,p1,p2) 4205 #define AVCT_TRACE_WARNING3(m,p1,p2,p3) 4206 #define AVCT_TRACE_WARNING4(m,p1,p2,p3,p4) 4207 #define AVCT_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4208 #define AVCT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4209 4210 #define AVCT_TRACE_EVENT0(m) 4211 #define AVCT_TRACE_EVENT1(m,p1) 4212 #define AVCT_TRACE_EVENT2(m,p1,p2) 4213 #define AVCT_TRACE_EVENT3(m,p1,p2,p3) 4214 #define AVCT_TRACE_EVENT4(m,p1,p2,p3,p4) 4215 #define AVCT_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4216 #define AVCT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4217 4218 #define AVCT_TRACE_DEBUG0(m) 4219 #define AVCT_TRACE_DEBUG1(m,p1) 4220 #define AVCT_TRACE_DEBUG2(m,p1,p2) 4221 #define AVCT_TRACE_DEBUG3(m,p1,p2,p3) 4222 #define AVCT_TRACE_DEBUG4(m,p1,p2,p3,p4) 4223 #define AVCT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4224 #define AVCT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4225 4226 #define AVCT_TRACE_API0(m) 4227 #define AVCT_TRACE_API1(m,p1) 4228 #define AVCT_TRACE_API2(m,p1,p2) 4229 #define AVCT_TRACE_API3(m,p1,p2,p3) 4230 #define AVCT_TRACE_API4(m,p1,p2,p3,p4) 4231 #define AVCT_TRACE_API5(m,p1,p2,p3,p4,p5) 4232 #define AVCT_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4233 4234 4235 /* Define tracing for the AVRCP profile 4236 */ 4237 #define AVRC_TRACE_ERROR0(m) 4238 #define AVRC_TRACE_ERROR1(m,p1) 4239 #define AVRC_TRACE_ERROR2(m,p1,p2) 4240 #define AVRC_TRACE_ERROR3(m,p1,p2,p3) 4241 #define AVRC_TRACE_ERROR4(m,p1,p2,p3,p4) 4242 #define AVRC_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4243 #define AVRC_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4244 4245 #define AVRC_TRACE_WARNING0(m) 4246 #define AVRC_TRACE_WARNING1(m,p1) 4247 #define AVRC_TRACE_WARNING2(m,p1,p2) 4248 #define AVRC_TRACE_WARNING3(m,p1,p2,p3) 4249 #define AVRC_TRACE_WARNING4(m,p1,p2,p3,p4) 4250 #define AVRC_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4251 #define AVRC_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4252 4253 #define AVRC_TRACE_EVENT0(m) 4254 #define AVRC_TRACE_EVENT1(m,p1) 4255 #define AVRC_TRACE_EVENT2(m,p1,p2) 4256 #define AVRC_TRACE_EVENT3(m,p1,p2,p3) 4257 #define AVRC_TRACE_EVENT4(m,p1,p2,p3,p4) 4258 #define AVRC_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4259 #define AVRC_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4260 4261 #define AVRC_TRACE_DEBUG0(m) 4262 #define AVRC_TRACE_DEBUG1(m,p1) 4263 #define AVRC_TRACE_DEBUG2(m,p1,p2) 4264 #define AVRC_TRACE_DEBUG3(m,p1,p2,p3) 4265 #define AVRC_TRACE_DEBUG4(m,p1,p2,p3,p4) 4266 #define AVRC_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4267 #define AVRC_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4268 4269 #define AVRC_TRACE_API0(m) 4270 #define AVRC_TRACE_API1(m,p1) 4271 #define AVRC_TRACE_API2(m,p1,p2) 4272 #define AVRC_TRACE_API3(m,p1,p2,p3) 4273 #define AVRC_TRACE_API4(m,p1,p2,p3,p4) 4274 #define AVRC_TRACE_API5(m,p1,p2,p3,p4,p5) 4275 #define AVRC_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4276 4277 /* MCAP 4278 */ 4279 #define MCA_TRACE_ERROR0(m) 4280 #define MCA_TRACE_ERROR1(m,p1) 4281 #define MCA_TRACE_ERROR2(m,p1,p2) 4282 #define MCA_TRACE_ERROR3(m,p1,p2,p3) 4283 #define MCA_TRACE_ERROR4(m,p1,p2,p3,p4) 4284 #define MCA_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4285 #define MCA_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4286 4287 #define MCA_TRACE_WARNING0(m) 4288 #define MCA_TRACE_WARNING1(m,p1) 4289 #define MCA_TRACE_WARNING2(m,p1,p2) 4290 #define MCA_TRACE_WARNING3(m,p1,p2,p3) 4291 #define MCA_TRACE_WARNING4(m,p1,p2,p3,p4) 4292 #define MCA_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4293 #define MCA_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4294 4295 #define MCA_TRACE_EVENT0(m) 4296 #define MCA_TRACE_EVENT1(m,p1) 4297 #define MCA_TRACE_EVENT2(m,p1,p2) 4298 #define MCA_TRACE_EVENT3(m,p1,p2,p3) 4299 #define MCA_TRACE_EVENT4(m,p1,p2,p3,p4) 4300 #define MCA_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4301 #define MCA_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4302 4303 #define MCA_TRACE_DEBUG0(m) 4304 #define MCA_TRACE_DEBUG1(m,p1) 4305 #define MCA_TRACE_DEBUG2(m,p1,p2) 4306 #define MCA_TRACE_DEBUG3(m,p1,p2,p3) 4307 #define MCA_TRACE_DEBUG4(m,p1,p2,p3,p4) 4308 #define MCA_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4309 #define MCA_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4310 4311 #define MCA_TRACE_API0(m) 4312 #define MCA_TRACE_API1(m,p1) 4313 #define MCA_TRACE_API2(m,p1,p2) 4314 #define MCA_TRACE_API3(m,p1,p2,p3) 4315 #define MCA_TRACE_API4(m,p1,p2,p3,p4) 4316 #define MCA_TRACE_API5(m,p1,p2,p3,p4,p5) 4317 #define MCA_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4318 4319 /* Define tracing for the AMP unit 4320 */ 4321 #define AMP_TRACE_ERROR0(m) 4322 #define AMP_TRACE_ERROR1(m,p1) 4323 #define AMP_TRACE_ERROR2(m,p1,p2) 4324 #define AMP_TRACE_ERROR3(m,p1,p2,p3) 4325 #define AMP_TRACE_ERROR4(m,p1,p2,p3,p4) 4326 #define AMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4327 #define AMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4328 4329 #define AMP_TRACE_WARNING0(m) 4330 #define AMP_TRACE_WARNING1(m,p1) 4331 #define AMP_TRACE_WARNING2(m,p1,p2) 4332 #define AMP_TRACE_WARNING3(m,p1,p2,p3) 4333 #define AMP_TRACE_WARNING4(m,p1,p2,p3,p4) 4334 #define AMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4335 #define AMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4336 4337 #define AMP_TRACE_API0(m) 4338 #define AMP_TRACE_API1(m,p1) 4339 #define AMP_TRACE_API2(m,p1,p2) 4340 #define AMP_TRACE_API3(m,p1,p2,p3) 4341 #define AMP_TRACE_API4(m,p1,p2,p3,p4) 4342 #define AMP_TRACE_API5(m,p1,p2,p3,p4,p5) 4343 #define AMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4344 4345 #define AMP_TRACE_EVENT0(m) 4346 #define AMP_TRACE_EVENT1(m,p1) 4347 #define AMP_TRACE_EVENT2(m,p1,p2) 4348 #define AMP_TRACE_EVENT3(m,p1,p2,p3) 4349 #define AMP_TRACE_EVENT4(m,p1,p2,p3,p4) 4350 #define AMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4351 #define AMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4352 4353 #define AMP_TRACE_DEBUG0(m) 4354 #define AMP_TRACE_DEBUG1(m,p1) 4355 #define AMP_TRACE_DEBUG2(m,p1,p2) 4356 #define AMP_TRACE_DEBUG3(m,p1,p2,p3) 4357 #define AMP_TRACE_DEBUG4(m,p1,p2,p3,p4) 4358 #define AMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4359 #define AMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4360 4361 /* Define tracing for the GATT 4362 */ 4363 #define GATT_TRACE_ERROR0(m) 4364 #define GATT_TRACE_ERROR1(m,p1) 4365 #define GATT_TRACE_ERROR2(m,p1,p2) 4366 #define GATT_TRACE_ERROR3(m,p1,p2,p3) 4367 #define GATT_TRACE_ERROR4(m,p1,p2,p3,p4) 4368 #define GATT_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4369 #define GATT_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4370 4371 #define GATT_TRACE_WARNING0(m) 4372 #define GATT_TRACE_WARNING1(m,p1) 4373 #define GATT_TRACE_WARNING2(m,p1,p2) 4374 #define GATT_TRACE_WARNING3(m,p1,p2,p3) 4375 #define GATT_TRACE_WARNING4(m,p1,p2,p3,p4) 4376 #define GATT_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4377 #define GATT_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4378 4379 #define GATT_TRACE_API0(m) 4380 #define GATT_TRACE_API1(m,p1) 4381 #define GATT_TRACE_API2(m,p1,p2) 4382 #define GATT_TRACE_API3(m,p1,p2,p3) 4383 #define GATT_TRACE_API4(m,p1,p2,p3,p4) 4384 #define GATT_TRACE_API5(m,p1,p2,p3,p4,p5) 4385 #define GATT_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4386 4387 #define GATT_TRACE_EVENT0(m) 4388 #define GATT_TRACE_EVENT1(m,p1) 4389 #define GATT_TRACE_EVENT2(m,p1,p2) 4390 #define GATT_TRACE_EVENT3(m,p1,p2,p3) 4391 #define GATT_TRACE_EVENT4(m,p1,p2,p3,p4) 4392 #define GATT_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4393 #define GATT_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4394 4395 #define GATT_TRACE_DEBUG0(m) 4396 #define GATT_TRACE_DEBUG1(m,p1) 4397 #define GATT_TRACE_DEBUG2(m,p1,p2) 4398 #define GATT_TRACE_DEBUG3(m,p1,p2,p3) 4399 #define GATT_TRACE_DEBUG4(m,p1,p2,p3,p4) 4400 #define GATT_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4401 #define GATT_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4402 4403 /* Define tracing for the SMP unit 4404 */ 4405 #define SMP_TRACE_ERROR0(m) 4406 #define SMP_TRACE_ERROR1(m,p1) 4407 #define SMP_TRACE_ERROR2(m,p1,p2) 4408 #define SMP_TRACE_ERROR3(m,p1,p2,p3) 4409 #define SMP_TRACE_ERROR4(m,p1,p2,p3,p4) 4410 #define SMP_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4411 #define SMP_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4412 4413 #define SMP_TRACE_WARNING0(m) 4414 #define SMP_TRACE_WARNING1(m,p1) 4415 #define SMP_TRACE_WARNING2(m,p1,p2) 4416 #define SMP_TRACE_WARNING3(m,p1,p2,p3) 4417 #define SMP_TRACE_WARNING4(m,p1,p2,p3,p4) 4418 #define SMP_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4419 #define SMP_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4420 4421 #define SMP_TRACE_API0(m) 4422 #define SMP_TRACE_API1(m,p1) 4423 #define SMP_TRACE_API2(m,p1,p2) 4424 #define SMP_TRACE_API3(m,p1,p2,p3) 4425 #define SMP_TRACE_API4(m,p1,p2,p3,p4) 4426 #define SMP_TRACE_API5(m,p1,p2,p3,p4,p5) 4427 #define SMP_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4428 4429 #define SMP_TRACE_EVENT0(m) 4430 #define SMP_TRACE_EVENT1(m,p1) 4431 #define SMP_TRACE_EVENT2(m,p1,p2) 4432 #define SMP_TRACE_EVENT3(m,p1,p2,p3) 4433 #define SMP_TRACE_EVENT4(m,p1,p2,p3,p4) 4434 #define SMP_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4435 #define SMP_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4436 4437 #define SMP_TRACE_DEBUG0(m) 4438 #define SMP_TRACE_DEBUG1(m,p1) 4439 #define SMP_TRACE_DEBUG2(m,p1,p2) 4440 #define SMP_TRACE_DEBUG3(m,p1,p2,p3) 4441 #define SMP_TRACE_DEBUG4(m,p1,p2,p3,p4) 4442 #define SMP_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4443 #define SMP_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4444 4445 #endif 4446 4447 #if (BT_TRACE_BTIF == TRUE) 4448 4449 extern UINT8 btif_trace_level; 4450 4451 /* define traces for application */ 4452 #define BTIF_TRACE_ERROR0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, (m));} 4453 #define BTIF_TRACE_ERROR1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4454 (m), (UINT32)(p1));} 4455 #define BTIF_TRACE_ERROR2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4456 (m), (UINT32)(p1), (UINT32)(p2));} 4457 #define BTIF_TRACE_ERROR3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4458 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4459 #define BTIF_TRACE_ERROR4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4460 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4461 #define BTIF_TRACE_ERROR5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4462 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4463 #define BTIF_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_ERROR) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_ERROR, \ 4464 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4465 4466 #define BTIF_TRACE_WARNING0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, (m));} 4467 #define BTIF_TRACE_WARNING1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4468 (m), (UINT32)(p1));} 4469 #define BTIF_TRACE_WARNING2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4470 (m), (UINT32)(p1), (UINT32)(p2));} 4471 #define BTIF_TRACE_WARNING3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4472 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4473 #define BTIF_TRACE_WARNING4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4474 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4475 #define BTIF_TRACE_WARNING5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4476 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4477 #define BTIF_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_WARNING) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_WARNING, \ 4478 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4479 4480 #define BTIF_TRACE_API0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, (m));} 4481 #define BTIF_TRACE_API1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4482 (m), (UINT32)(p1));} 4483 #define BTIF_TRACE_API2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4484 (m), (UINT32)(p1), (UINT32)(p2));} 4485 #define BTIF_TRACE_API3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4486 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4487 #define BTIF_TRACE_API4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4488 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4489 #define BTIF_TRACE_API5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4490 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4491 #define BTIF_TRACE_API6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_API) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_API, \ 4492 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4493 4494 #define BTIF_TRACE_EVENT0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, (m));} 4495 #define BTIF_TRACE_EVENT1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4496 (m), (UINT32)(p1));} 4497 #define BTIF_TRACE_EVENT2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4498 (m), (UINT32)(p1), (UINT32)(p2));} 4499 #define BTIF_TRACE_EVENT3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4500 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4501 #define BTIF_TRACE_EVENT4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4502 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4503 #define BTIF_TRACE_EVENT5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4504 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4505 #define BTIF_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_EVENT) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_EVENT, \ 4506 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4507 4508 #define BTIF_TRACE_DEBUG0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m));} 4509 #define BTIF_TRACE_DEBUG1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4510 (m), (UINT32)(p1));} 4511 #define BTIF_TRACE_DEBUG2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4512 (m), (UINT32)(p1), (UINT32)(p2));} 4513 #define BTIF_TRACE_DEBUG3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4514 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4515 #define BTIF_TRACE_DEBUG4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4516 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4517 #define BTIF_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4518 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4519 #define BTIF_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_DEBUG) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4520 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4521 4522 #define BTIF_TRACE_VERBOSE0(m) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m));} 4523 #define BTIF_TRACE_VERBOSE1(m,p1) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4524 (m), (UINT32)(p1));} 4525 #define BTIF_TRACE_VERBOSE2(m,p1,p2) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4526 (m), (UINT32)(p1), (UINT32)(p2));} 4527 #define BTIF_TRACE_VERBOSE3(m,p1,p2,p3) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4528 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4529 #define BTIF_TRACE_VERBOSE4(m,p1,p2,p3,p4) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4530 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4531 #define BTIF_TRACE_VERBOSE5(m,p1,p2,p3,p4,p5) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4532 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4533 #define BTIF_TRACE_VERBOSE6(m,p1,p2,p3,p4,p5,p6) {if (btif_trace_level >= BT_TRACE_LEVEL_VERBOSE) LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, \ 4534 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4535 4536 #else 4537 /* define traces for Application */ 4538 4539 #define BTIF_TRACE_ERROR0(m) 4540 #define BTIF_TRACE_ERROR1(m,p1) 4541 #define BTIF_TRACE_ERROR2(m,p1,p2) 4542 #define BTIF_TRACE_ERROR3(m,p1,p2,p3) 4543 #define BTIF_TRACE_ERROR4(m,p1,p2,p3,p4) 4544 #define BTIF_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4545 #define BTIF_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4546 #define BTIF_TRACE_ERROR7(m,p1,p2,p3,p4,p5,p6,p7) 4547 4548 4549 #define BTIF_TRACE_WARNING0(m) 4550 #define BTIF_TRACE_WARNING1(m,p1) 4551 #define BTIF_TRACE_WARNING2(m,p1,p2) 4552 #define BTIF_TRACE_WARNING3(m,p1,p2,p3) 4553 #define BTIF_TRACE_WARNING4(m,p1,p2,p3,p4) 4554 #define BTIF_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4555 #define BTIF_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4556 #define BTIF_TRACE_WARNING7(m,p1,p2,p3,p4,p5,p6,p7) 4557 4558 4559 #define BTIF_TRACE_API0(m) 4560 #define BTIF_TRACE_API1(m,p1) 4561 #define BTIF_TRACE_API2(m,p1,p2) 4562 #define BTIF_TRACE_API3(m,p1,p2,p3) 4563 #define BTIF_TRACE_API4(m,p1,p2,p3,p4) 4564 #define BTIF_TRACE_API5(m,p1,p2,p3,p4,p5) 4565 #define BTIF_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4566 4567 #define BTIF_TRACE_EVENT0(m) 4568 #define BTIF_TRACE_EVENT1(m,p1) 4569 #define BTIF_TRACE_EVENT2(m,p1,p2) 4570 #define BTIF_TRACE_EVENT3(m,p1,p2,p3) 4571 #define BTIF_TRACE_EVENT4(m,p1,p2,p3,p4) 4572 #define BTIF_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4573 #define BTIF_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4574 4575 #define BTIF_TRACE_DEBUG0(m) 4576 #define BTIF_TRACE_DEBUG1(m,p1) 4577 #define BTIF_TRACE_DEBUG2(m,p1,p2) 4578 #define BTIF_TRACE_DEBUG3(m,p1,p2,p3) 4579 #define BTIF_TRACE_DEBUG4(m,p1,p2,p3,p4) 4580 #define BTIF_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4581 #define BTIF_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4582 #define BTIF_TRACE_DEBUG7(m,p1,p2,p3,p4,p5,p6,p7) 4583 #define BTIF_TRACE_DEBUG8(m,p1,p2,p3,p4,p5,p6,p7,p8) 4584 4585 4586 4587 4588 #define BTIF_TRACE_VERBOSE0(m) 4589 #define BTIF_TRACE_VERBOSE1(m,p1) 4590 #define BTIF_TRACE_VERBOSE2(m,p1,p2) 4591 #define BTIF_TRACE_VERBOSE3(m,p1,p2,p3) 4592 #define BTIF_TRACE_VERBOSE4(m,p1,p2,p3,p4) 4593 #define BTIF_TRACE_VERBOSE5(m,p1,p2,p3,p4,p5) 4594 #define BTIF_TRACE_VERBOSE6(m,p1,p2,p3,p4,p5,p6) 4595 4596 #endif 4597 4598 4599 #if (BT_USE_TRACES == TRUE || BT_TRACE_APPL == TRUE) 4600 4601 /* define traces for application */ 4602 #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));} 4603 #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, \ 4604 (m), (UINT32)(p1));} 4605 #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, \ 4606 (m), (UINT32)(p1), (UINT32)(p2));} 4607 #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, \ 4608 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4609 #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, \ 4610 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4611 #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, \ 4612 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4613 #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, \ 4614 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4615 4616 #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));} 4617 #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, \ 4618 (m), (UINT32)(p1));} 4619 #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, \ 4620 (m), (UINT32)(p1), (UINT32)(p2));} 4621 #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, \ 4622 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4623 #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, \ 4624 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4625 #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, \ 4626 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4627 #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, \ 4628 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4629 4630 #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));} 4631 #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, \ 4632 (m), (UINT32)(p1));} 4633 #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, \ 4634 (m), (UINT32)(p1), (UINT32)(p2));} 4635 #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, \ 4636 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4637 #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, \ 4638 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4639 #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, \ 4640 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4641 #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, \ 4642 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4643 4644 #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));} 4645 #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, \ 4646 (m), (UINT32)(p1));} 4647 #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, \ 4648 (m), (UINT32)(p1), (UINT32)(p2));} 4649 #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, \ 4650 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4651 #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, \ 4652 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4653 #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, \ 4654 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4655 #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, \ 4656 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4657 4658 #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));} 4659 #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, \ 4660 (m), (UINT32)(p1));} 4661 #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, \ 4662 (m), (UINT32)(p1), (UINT32)(p2));} 4663 #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, \ 4664 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4665 #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, \ 4666 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4667 #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, \ 4668 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4669 #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, \ 4670 (m), (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4671 4672 #define APPL_TRACE_VERBOSE0(m) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4673 LogMsg_0(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m));} 4674 #define APPL_TRACE_VERBOSE1(m,p1) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4675 LogMsg_1(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4676 (UINT32)(p1));} 4677 #define APPL_TRACE_VERBOSE2(m,p1,p2) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4678 LogMsg_2(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4679 (UINT32)(p1), (UINT32)(p2));} 4680 #define APPL_TRACE_VERBOSE3(m,p1,p2,p3) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4681 LogMsg_3(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4682 (UINT32)(p1), (UINT32)(p2), (UINT32)(p3));} 4683 #define APPL_TRACE_VERBOSE4(m,p1,p2,p3,p4) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4684 LogMsg_4(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4685 (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4));} 4686 #define APPL_TRACE_VERBOSE5(m,p1,p2,p3,p4,p5) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4687 LogMsg_5(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4688 (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5));} 4689 #define APPL_TRACE_VERBOSE6(m,p1,p2,p3,p4,p5,p6) {if (appl_trace_level >= BT_TRACE_LEVEL_VERBOSE)\ 4690 LogMsg_6(TRACE_CTRL_GENERAL | TRACE_LAYER_NONE | TRACE_ORG_APPL | TRACE_TYPE_DEBUG, (m), \ 4691 (UINT32)(p1), (UINT32)(p2), (UINT32)(p3), (UINT32)(p4), (UINT32)(p5), (UINT32)(p6));} 4692 4693 #else 4694 /* define traces for Application */ 4695 4696 #define APPL_TRACE_ERROR0(m) 4697 #define APPL_TRACE_ERROR1(m,p1) 4698 #define APPL_TRACE_ERROR2(m,p1,p2) 4699 #define APPL_TRACE_ERROR3(m,p1,p2,p3) 4700 #define APPL_TRACE_ERROR4(m,p1,p2,p3,p4) 4701 #define APPL_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4702 #define APPL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4703 4704 #define APPL_TRACE_WARNING0(m) 4705 #define APPL_TRACE_WARNING1(m,p1) 4706 #define APPL_TRACE_WARNING2(m,p1,p2) 4707 #define APPL_TRACE_WARNING3(m,p1,p2,p3) 4708 #define APPL_TRACE_WARNING4(m,p1,p2,p3,p4) 4709 #define APPL_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4710 #define APPL_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4711 4712 #define APPL_TRACE_API0(m) 4713 #define APPL_TRACE_API1(m,p1) 4714 #define APPL_TRACE_API2(m,p1,p2) 4715 #define APPL_TRACE_API3(m,p1,p2,p3) 4716 #define APPL_TRACE_API4(m,p1,p2,p3,p4) 4717 #define APPL_TRACE_API5(m,p1,p2,p3,p4,p5) 4718 #define APPL_TRACE_API6(m,p1,p2,p3,p4,p5,p6) 4719 4720 #define APPL_TRACE_EVENT0(m) 4721 #define APPL_TRACE_EVENT1(m,p1) 4722 #define APPL_TRACE_EVENT2(m,p1,p2) 4723 #define APPL_TRACE_EVENT3(m,p1,p2,p3) 4724 #define APPL_TRACE_EVENT4(m,p1,p2,p3,p4) 4725 #define APPL_TRACE_EVENT5(m,p1,p2,p3,p4,p5) 4726 #define APPL_TRACE_EVENT6(m,p1,p2,p3,p4,p5,p6) 4727 4728 #define APPL_TRACE_DEBUG0(m) 4729 #define APPL_TRACE_DEBUG1(m,p1) 4730 #define APPL_TRACE_DEBUG2(m,p1,p2) 4731 #define APPL_TRACE_DEBUG3(m,p1,p2,p3) 4732 #define APPL_TRACE_DEBUG4(m,p1,p2,p3,p4) 4733 #define APPL_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4734 #define APPL_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4735 4736 #define APPL_TRACE_VERBOSE0(m) 4737 #define APPL_TRACE_VERBOSE1(m,p1) 4738 #define APPL_TRACE_VERBOSE2(m,p1,p2) 4739 #define APPL_TRACE_VERBOSE3(m,p1,p2,p3) 4740 #define APPL_TRACE_VERBOSE4(m,p1,p2,p3,p4) 4741 #define APPL_TRACE_VERBOSE5(m,p1,p2,p3,p4,p5) 4742 #define APPL_TRACE_VERBOSE6(m,p1,p2,p3,p4,p5,p6) 4743 4744 #endif 4745 4746 #if ((MMI_INCLUDED == TRUE) && (!defined(HID_MSKB_INCLUDED) || (HID_MSKB_INCLUDED == FALSE))) 4747 /* UI for sample applications */ 4748 #define SAP_TRACE_0(m) MMI_Echo(m) 4749 #define SAP_TRACE_1(m,p1) MMI_Echo(m,p1) 4750 #define SAP_TRACE_2(m,p1,p2) MMI_Echo(m,p1,p2) 4751 #define SAP_TRACE_3(m,p1,p2,p3) MMI_Echo(m,p1,p2,p3) 4752 #define SAP_TRACE_4(m,p1,p2,p3,p4) MMI_Echo(m,p1,p2,p3,p4) 4753 #define SAP_TRACE_5(m,p1,p2,p3,p4,p5) MMI_Echo(m,p1,p2,p3,p4,p5) 4754 #define SAP_TRACE_6(m,p1,p2,p3,p4,p5,p6) MMI_Echo(m,p1,p2,p3,p4,p5,p6) 4755 #else 4756 #define SAP_TRACE_0(m) 4757 #define SAP_TRACE_1(m,p1) 4758 #define SAP_TRACE_2(m,p1,p2) 4759 #define SAP_TRACE_3(m,p1,p2,p3) 4760 #define SAP_TRACE_4(m,p1,p2,p3,p4) 4761 #define SAP_TRACE_5(m,p1,p2,p3,p4,p5) 4762 #define SAP_TRACE_6(m,p1,p2,p3,p4,p5,p6) 4763 4764 #endif /* End of MMI_INCLUDED */ 4765 #if defined(DRV_DEBUG_MSG) && (DRV_DEBUG_MSG == TRUE) 4766 /* Driver Trace macros 4767 */ 4768 #define DRV_TRACE_WARNING0(m) APPL_TRACE_WARNING0(m) 4769 #define DRV_TRACE_WARNING1(m,p1) APPL_TRACE_WARNING1(m,p1) 4770 #define DRV_TRACE_WARNING2(m,p1,p2) APPL_TRACE_WARNING2(m,p1,p2) 4771 #define DRV_TRACE_WARNING3(m,p1,p2,p3) APPL_TRACE_WARNING3(m,p1,p2,p3) 4772 #define DRV_TRACE_WARNING4(m,p1,p2,p3,p4) APPL_TRACE_WARNING4(m,p1,p2,p3,p4) 4773 #define DRV_TRACE_WARNING5(m,p1,p2,p3,p4,p5) APPL_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4774 #define DRV_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) APPL_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4775 #else 4776 /* Driver Trace macros 4777 */ 4778 #define DRV_TRACE_WARNING0(m) 4779 #define DRV_TRACE_WARNING1(m,p1) 4780 #define DRV_TRACE_WARNING2(m,p1,p2) 4781 #define DRV_TRACE_WARNING3(m,p1,p2,p3) 4782 #define DRV_TRACE_WARNING4(m,p1,p2,p3,p4) 4783 #define DRV_TRACE_WARNING5(m,p1,p2,p3,p4,p5) 4784 #define DRV_TRACE_WARNING6(m,p1,p2,p3,p4,p5,p6) 4785 #endif 4786 4787 #define DRV_TRACE_ERROR0(m) APPL_TRACE_ERROR0(m) 4788 #define DRV_TRACE_ERROR1(m,p1) APPL_TRACE_ERROR1(m,p1) 4789 #define DRV_TRACE_ERROR2(m,p1,p2) APPL_TRACE_ERROR2(m,p1,p2) 4790 #define DRV_TRACE_ERROR3(m,p1,p2,p3) APPL_TRACE_ERROR3(m,p1,p2,p3) 4791 #define DRV_TRACE_ERROR4(m,p1,p2,p3,p4) APPL_TRACE_ERROR4(m,p1,p2,p3,p4) 4792 #define DRV_TRACE_ERROR5(m,p1,p2,p3,p4,p5) APPL_TRACE_ERROR5(m,p1,p2,p3,p4,p5) 4793 #define DRV_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) APPL_TRACE_ERROR6(m,p1,p2,p3,p4,p5,p6) 4794 4795 /* Driver Trace macros 4796 */ 4797 #define DRV_TRACE_DEBUG0(m) APPL_TRACE_DEBUG0(m) 4798 #define DRV_TRACE_DEBUG1(m,p1) APPL_TRACE_DEBUG1(m,p1) 4799 #define DRV_TRACE_DEBUG2(m,p1,p2) APPL_TRACE_DEBUG2(m,p1,p2) 4800 #define DRV_TRACE_DEBUG3(m,p1,p2,p3) APPL_TRACE_DEBUG3(m,p1,p2,p3) 4801 #define DRV_TRACE_DEBUG4(m,p1,p2,p3,p4) APPL_TRACE_DEBUG4(m,p1,p2,p3,p4) 4802 #define DRV_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) APPL_TRACE_DEBUG5(m,p1,p2,p3,p4,p5) 4803 #define DRV_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) APPL_TRACE_DEBUG6(m,p1,p2,p3,p4,p5,p6) 4804 4805 4806 #endif /* BT_TRACE_H */ 4807 4808 4809