From a0da80fe8939cd7582e53a0e4c0a79a1bdfbbe3a Mon Sep 17 00:00:00 2001 From: lly Date: Mon, 7 Dec 2020 17:05:19 +0800 Subject: [PATCH] ble_mesh: stack: Remove useless BT_DBG_ENABLED in a few files --- components/bt/esp_ble_mesh/mesh_core/access.c | 2 -- components/bt/esp_ble_mesh/mesh_core/adv.c | 2 -- components/bt/esp_ble_mesh/mesh_core/beacon.c | 2 -- components/bt/esp_ble_mesh/mesh_core/cfg_cli.c | 2 -- components/bt/esp_ble_mesh/mesh_core/cfg_srv.c | 2 -- components/bt/esp_ble_mesh/mesh_core/crypto.c | 2 -- components/bt/esp_ble_mesh/mesh_core/friend.c | 2 -- components/bt/esp_ble_mesh/mesh_core/health_cli.c | 2 -- components/bt/esp_ble_mesh/mesh_core/health_srv.c | 2 -- components/bt/esp_ble_mesh/mesh_core/lpn.c | 2 -- components/bt/esp_ble_mesh/mesh_core/main.c | 2 -- components/bt/esp_ble_mesh/mesh_core/net.c | 2 -- components/bt/esp_ble_mesh/mesh_core/prov.c | 2 -- components/bt/esp_ble_mesh/mesh_core/proxy_server.c | 2 -- components/bt/esp_ble_mesh/mesh_core/settings.c | 2 -- components/bt/esp_ble_mesh/mesh_core/transport.c | 2 -- 16 files changed, 32 deletions(-) diff --git a/components/bt/esp_ble_mesh/mesh_core/access.c b/components/bt/esp_ble_mesh/mesh_core/access.c index 43de5a7bd0..4c6d355486 100644 --- a/components/bt/esp_ble_mesh/mesh_core/access.c +++ b/components/bt/esp_ble_mesh/mesh_core/access.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_ACCESS) - #include "mesh.h" #include "adv.h" #include "transport.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/adv.c b/components/bt/esp_ble_mesh/mesh_core/adv.c index 8406fa1a6e..04a441d592 100644 --- a/components/bt/esp_ble_mesh/mesh_core/adv.c +++ b/components/bt/esp_ble_mesh/mesh_core/adv.c @@ -11,8 +11,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_ADV) - #include "mesh_kernel.h" #include "mesh.h" #include "mesh_hci.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/beacon.c b/components/bt/esp_ble_mesh/mesh_core/beacon.c index 1b1328cd15..2cc632b23d 100644 --- a/components/bt/esp_ble_mesh/mesh_core/beacon.c +++ b/components/bt/esp_ble_mesh/mesh_core/beacon.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_BEACON) - #include "adv.h" #include "mesh.h" #include "prov.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/cfg_cli.c b/components/bt/esp_ble_mesh/mesh_core/cfg_cli.c index 0d07eb15b1..82482404b7 100644 --- a/components/bt/esp_ble_mesh/mesh_core/cfg_cli.c +++ b/components/bt/esp_ble_mesh/mesh_core/cfg_cli.c @@ -11,8 +11,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_MODEL) - #include "btc_ble_mesh_config_model.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c b/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c index 3dcd364c18..e32510d0a0 100644 --- a/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c +++ b/components/bt/esp_ble_mesh/mesh_core/cfg_srv.c @@ -11,8 +11,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_MODEL) - #include "btc_ble_mesh_config_model.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/crypto.c b/components/bt/esp_ble_mesh/mesh_core/crypto.c index bf244f8368..085fa381d1 100644 --- a/components/bt/esp_ble_mesh/mesh_core/crypto.c +++ b/components/bt/esp_ble_mesh/mesh_core/crypto.c @@ -11,8 +11,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_CRYPTO) - #include #include #include diff --git a/components/bt/esp_ble_mesh/mesh_core/friend.c b/components/bt/esp_ble_mesh/mesh_core/friend.c index 15e1fb1321..22a459e82c 100644 --- a/components/bt/esp_ble_mesh/mesh_core/friend.c +++ b/components/bt/esp_ble_mesh/mesh_core/friend.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_FRIEND) - #include "crypto.h" #include "adv.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/health_cli.c b/components/bt/esp_ble_mesh/mesh_core/health_cli.c index d793e59c61..20b7f16a08 100644 --- a/components/bt/esp_ble_mesh/mesh_core/health_cli.c +++ b/components/bt/esp_ble_mesh/mesh_core/health_cli.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_MODEL) - #include "btc_ble_mesh_health_model.h" #include "mesh_config.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/health_srv.c b/components/bt/esp_ble_mesh/mesh_core/health_srv.c index d79ba7be1d..48a502733d 100644 --- a/components/bt/esp_ble_mesh/mesh_core/health_srv.c +++ b/components/bt/esp_ble_mesh/mesh_core/health_srv.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_MODEL) - #include "btc_ble_mesh_health_model.h" #include "access.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/lpn.c b/components/bt/esp_ble_mesh/mesh_core/lpn.c index 98e56366bf..eedc8922c1 100644 --- a/components/bt/esp_ble_mesh/mesh_core/lpn.c +++ b/components/bt/esp_ble_mesh/mesh_core/lpn.c @@ -9,8 +9,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_LOW_POWER) - #include "crypto.h" #include "adv.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/main.c b/components/bt/esp_ble_mesh/mesh_core/main.c index a4b36e3750..ab279119fa 100644 --- a/components/bt/esp_ble_mesh/mesh_core/main.c +++ b/components/bt/esp_ble_mesh/mesh_core/main.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG) - #include "adv.h" #include "prov.h" #include "beacon.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/net.c b/components/bt/esp_ble_mesh/mesh_core/net.c index f33fa8ddcf..74e260c41d 100644 --- a/components/bt/esp_ble_mesh/mesh_core/net.c +++ b/components/bt/esp_ble_mesh/mesh_core/net.c @@ -11,8 +11,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_NET) - #include "crypto.h" #include "adv.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/prov.c b/components/bt/esp_ble_mesh/mesh_core/prov.c index da229defb3..c2be7fb418 100644 --- a/components/bt/esp_ble_mesh/mesh_core/prov.c +++ b/components/bt/esp_ble_mesh/mesh_core/prov.c @@ -9,8 +9,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_PROV) - #include "crypto.h" #include "adv.h" #include "mesh.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/proxy_server.c b/components/bt/esp_ble_mesh/mesh_core/proxy_server.c index c9ad62046f..b5374686ec 100644 --- a/components/bt/esp_ble_mesh/mesh_core/proxy_server.c +++ b/components/bt/esp_ble_mesh/mesh_core/proxy_server.c @@ -9,8 +9,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_PROXY) - #include "mesh.h" #include "adv.h" #include "prov.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/settings.c b/components/bt/esp_ble_mesh/mesh_core/settings.c index 1bcea871c4..a029512961 100644 --- a/components/bt/esp_ble_mesh/mesh_core/settings.c +++ b/components/bt/esp_ble_mesh/mesh_core/settings.c @@ -8,8 +8,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_SETTINGS) - #include "mesh.h" #include "crypto.h" #include "transport.h" diff --git a/components/bt/esp_ble_mesh/mesh_core/transport.c b/components/bt/esp_ble_mesh/mesh_core/transport.c index 927af94216..faac12dc3b 100644 --- a/components/bt/esp_ble_mesh/mesh_core/transport.c +++ b/components/bt/esp_ble_mesh/mesh_core/transport.c @@ -10,8 +10,6 @@ #include #include -#define BT_DBG_ENABLED IS_ENABLED(CONFIG_BLE_MESH_DEBUG_TRANS) - #include "crypto.h" #include "adv.h" #include "mesh.h"