Bluetooth: Remove legacy debug symbols

The `BT_DEBUG_*` Kconfig symbols have been deprecated for more than 2
versions, remove them.

Update code that was still using them.

Remove the Bluetooth specific `Kconfig.template.log_config_bt` and use
`Kconfig.template.log_config_inherit` from the logging subsystem
instead, now that the legacy symbols can be removed.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
This commit is contained in:
Théo Battrel 2024-05-02 07:59:24 +02:00 committed by Alberto Escolar
commit b2e235d530
14 changed files with 105 additions and 813 deletions

View file

@ -298,7 +298,7 @@ static int handle_scan_report(const struct bt_mesh_model *mod, struct bt_mesh_ms
return -EINVAL;
}
if (IS_ENABLED(CONFIG_BT_MESH_DEBUG)) {
if (IS_ENABLED(CONFIG_BT_MESH_MODEL_LOG_LEVEL_DBG)) {
struct bt_uuid_128 uuid_repr = { .uuid = { BT_UUID_TYPE_128 } };
memcpy(uuid_repr.val, dev.uuid, 16);

View file

@ -1173,7 +1173,7 @@ static void adv_handle_ext_scan(const struct bt_le_scan_recv_info *info,
srv.scan.addr = *info->addr;
atomic_set_bit(srv.flags, SCAN_EXT_HAS_ADDR);
if (IS_ENABLED(CONFIG_BT_MESH_DEBUG_MODEL)) {
if (IS_ENABLED(CONFIG_BT_MESH_MODEL_LOG_LEVEL_DBG)) {
struct bt_uuid_128 uuid_repr = { .uuid = { BT_UUID_TYPE_128 } };
memcpy(uuid_repr.val, dev->uuid, 16);