1 #ifndef _BT_MESH_CUSTOM_LOG_H_
2 #define _BT_MESH_CUSTOM_LOG_H_
3 
4 #ifdef USE_BT_MESH_CUSTOM_LOG
5 
6 #ifdef BT_DBG
7 #undef BT_DBG
8 #define BT_DBG(f, ...) printf(f "\n", ##__VA_ARGS__)
9 #endif
10 
11 #ifdef BT_INFO
12 #undef BT_INFO
13 #define BT_INFO(f, ...) printf(f "\n", ##__VA_ARGS__)
14 #endif
15 
16 #endif
17 #if defined(USE_BT_MESH_CUSTOM_LOG) || defined(USE_BT_MESH_CUSTOM_ERR_LOG)
18 #ifdef BT_WARN
19 #undef BT_WARN
20 #define BT_WARN(f, ...) printf("[%s]" f "\n", __func__, ##__VA_ARGS__)
21 #endif
22 
23 #ifdef BT_ERR
24 #undef BT_ERR
25 #define BT_ERR(f, ...) printf("[%s]" f "\n", __func__, ##__VA_ARGS__)
26 #endif
27 
28 #endif
29 
30 #endif
31