From 2cc0263a5392a6e486e336f05ec07b67e8c6c3fb Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Wed, 6 Nov 2019 15:31:33 +0100 Subject: [PATCH] Bluetooth: Reduce severity of unavoidable warnings Reduces the severity of warnings that happen from normal behavior, or can't be prevented by the user: - "No ID address" in hci_core.c: Reduced to an informational warning, as this will always output with the expected usage. This isn't useful information for 99.9% of users, and pollutes the output of all samples using the module. - "Composition page %u not available" in cfg_srv.c: According to the Mesh Profile Specification section 4.4.2.2.2, the client is expected to send page=0xff. Reduced to a debug message. - "Connectable advertising deferred" in proxy.c: Gets logged every 10 seconds when in a Mesh Proxy connection. This is not useful information unless the user is debugging the proxy module. Reduced to a debug message. Signed-off-by: Trond Einar Snekvik --- subsys/bluetooth/host/hci_core.c | 2 +- subsys/bluetooth/mesh/cfg_srv.c | 2 +- subsys/bluetooth/mesh/proxy.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index a13aec2ba0f..38e1e9f7e86 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -4993,7 +4993,7 @@ static int bt_init(void) if (IS_ENABLED(CONFIG_BT_SETTINGS)) { if (!bt_dev.id_count) { - BT_WARN("No ID address. App must call settings_load()"); + BT_INFO("No ID address. App must call settings_load()"); return 0; } diff --git a/subsys/bluetooth/mesh/cfg_srv.c b/subsys/bluetooth/mesh/cfg_srv.c index 9f4a54f9373..bb35e4079f2 100644 --- a/subsys/bluetooth/mesh/cfg_srv.c +++ b/subsys/bluetooth/mesh/cfg_srv.c @@ -129,7 +129,7 @@ static void dev_comp_data_get(struct bt_mesh_model *model, page = net_buf_simple_pull_u8(buf); if (page != 0U) { - BT_WARN("Composition page %u not available", page); + BT_DBG("Composition page %u not available", page); page = 0U; } diff --git a/subsys/bluetooth/mesh/proxy.c b/subsys/bluetooth/mesh/proxy.c index 2fe1875aadb..2c9a84d07a1 100644 --- a/subsys/bluetooth/mesh/proxy.c +++ b/subsys/bluetooth/mesh/proxy.c @@ -1138,7 +1138,7 @@ static s32_t gatt_proxy_advertise(struct bt_mesh_subnet *sub) BT_DBG(""); if (conn_count == CONFIG_BT_MAX_CONN) { - BT_WARN("Connectable advertising deferred (max connections)"); + BT_DBG("Connectable advertising deferred (max connections)"); return remaining; }