From 0d54d7ab39f689f9dc2a05778578892c6c9c9d1a Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Wed, 15 Sep 2021 12:29:06 +0300 Subject: [PATCH] Adjust trace levels (#2692) Move some traces from debug-level to info-level in order to get plots properly generated when application has only info-level traces enabled. --- source/6LoWPAN/Thread/thread_bootstrap.c | 2 +- source/6LoWPAN/ws/ws_bootstrap.c | 2 +- source/6LoWPAN/ws/ws_bootstrap_6lbr.c | 2 +- source/6LoWPAN/ws/ws_bootstrap_ffn.c | 2 +- source/6LoWPAN/ws/ws_bootstrap_lfn.c | 2 +- source/MAC/IEEE802_15_4/mac_cca_threshold.c | 2 +- source/MAC/IEEE802_15_4/mac_mlme.c | 2 +- source/MPL/mpl.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/6LoWPAN/Thread/thread_bootstrap.c b/source/6LoWPAN/Thread/thread_bootstrap.c index af16058f13dd..38665c343d2f 100644 --- a/source/6LoWPAN/Thread/thread_bootstrap.c +++ b/source/6LoWPAN/Thread/thread_bootstrap.c @@ -2308,7 +2308,7 @@ void thread_bootstrap_state_machine(protocol_interface_info_entry_t *cur) break; case ER_BOOTSRAP_DONE: - tr_debug("Thread SM:Bootstrap Done"); + tr_info("Thread SM:Bootstrap Done"); cur->nwk_nd_re_scan_count = 0; break; case ER_BOOTSTRAP_SCAN_FAIL: diff --git a/source/6LoWPAN/ws/ws_bootstrap.c b/source/6LoWPAN/ws/ws_bootstrap.c index c2fd936386cf..5c6dbc7b2854 100644 --- a/source/6LoWPAN/ws/ws_bootstrap.c +++ b/source/6LoWPAN/ws/ws_bootstrap.c @@ -2725,7 +2725,7 @@ static void ws_bootstrap_nw_info_updated(protocol_interface_info_entry_t *cur, u static void ws_bootstrap_authentication_completed(protocol_interface_info_entry_t *cur, auth_result_e result, uint8_t *target_eui_64) { if (result == AUTH_RESULT_OK) { - tr_debug("authentication success eui64:%s", trace_array(target_eui_64, 8)); + tr_info("authentication success eui64:%s", trace_array(target_eui_64, 8)); if (target_eui_64) { // Authentication was made contacting the authenticator cur->ws_info->authentication_time = cur->ws_info->uptime; diff --git a/source/6LoWPAN/ws/ws_bootstrap_6lbr.c b/source/6LoWPAN/ws/ws_bootstrap_6lbr.c index 536e4720b63f..a5e9ac303701 100644 --- a/source/6LoWPAN/ws/ws_bootstrap_6lbr.c +++ b/source/6LoWPAN/ws/ws_bootstrap_6lbr.c @@ -456,7 +456,7 @@ void ws_bootstrap_6lbr_state_machine(protocol_interface_info_entry_t *cur) tr_debug("WS SM:Wait RPL to contact DODAG root"); break; case ER_BOOTSRAP_DONE: - tr_debug("WS SM:Bootstrap Done"); + tr_info("WS SM:Bootstrap Done"); // Bootstrap_done event to application nwk_bootsrap_state_update(ARM_NWK_BOOTSTRAP_READY, cur); break; diff --git a/source/6LoWPAN/ws/ws_bootstrap_ffn.c b/source/6LoWPAN/ws/ws_bootstrap_ffn.c index d744f501bf46..a7667a517cb9 100644 --- a/source/6LoWPAN/ws/ws_bootstrap_ffn.c +++ b/source/6LoWPAN/ws/ws_bootstrap_ffn.c @@ -965,7 +965,7 @@ void ws_bootstrap_ffn_state_machine(protocol_interface_info_entry_t *cur) ws_bootstrap_ffn_rpl_wait_process(cur); break; case ER_BOOTSRAP_DONE: - tr_debug("WS SM:Bootstrap Done"); + tr_info("WS SM:Bootstrap Done"); // Bootstrap_done event to application nwk_bootsrap_state_update(ARM_NWK_BOOTSTRAP_READY, cur); break; diff --git a/source/6LoWPAN/ws/ws_bootstrap_lfn.c b/source/6LoWPAN/ws/ws_bootstrap_lfn.c index 3ee2237399b1..7e0a46cc49c6 100644 --- a/source/6LoWPAN/ws/ws_bootstrap_lfn.c +++ b/source/6LoWPAN/ws/ws_bootstrap_lfn.c @@ -151,7 +151,7 @@ void ws_bootstrap_lfn_state_machine(protocol_interface_info_entry_t *cur) tr_debug("WS SM:Wait RPL to contact DODAG root"); break; case ER_BOOTSRAP_DONE: - tr_debug("WS SM:Bootstrap Done"); + tr_info("WS SM:Bootstrap Done"); // Bootstrap_done event to application break; case ER_RPL_NETWORK_LEAVING: diff --git a/source/MAC/IEEE802_15_4/mac_cca_threshold.c b/source/MAC/IEEE802_15_4/mac_cca_threshold.c index 1b3a94253b66..f4ce92fbe478 100644 --- a/source/MAC/IEEE802_15_4/mac_cca_threshold.c +++ b/source/MAC/IEEE802_15_4/mac_cca_threshold.c @@ -137,7 +137,7 @@ int8_t mac_cca_threshold_update(protocol_interface_rf_mac_setup_s *rf_ptr, uint8 return -1; } } - tr_debug("Channel %u CCA threshold to %i", channel, rf_ptr->cca_threshold->ch_thresholds[channel]); + tr_info("Channel %u CCA threshold to %i", channel, rf_ptr->cca_threshold->ch_thresholds[channel]); return 0; } diff --git a/source/MAC/IEEE802_15_4/mac_mlme.c b/source/MAC/IEEE802_15_4/mac_mlme.c index 9d39b35202ea..cbc668202080 100644 --- a/source/MAC/IEEE802_15_4/mac_mlme.c +++ b/source/MAC/IEEE802_15_4/mac_mlme.c @@ -826,7 +826,7 @@ int8_t mac_mlme_set_req(protocol_interface_rf_mac_setup_s *rf_mac_setup, const m case macCCAThreshold: pu8 = (uint8_t *) set_req->value_pointer; rf_mac_setup->dev_driver->phy_driver->extension(PHY_EXTENSION_SET_CCA_THRESHOLD, pu8); - tr_debug("Set CCA threshold to %u%%", *pu8); + tr_info("Set CCA threshold to %u%%", *pu8); return 0; case macMultiCSMAParameters: return mac_mlme_set_multi_csma_parameters(rf_mac_setup, set_req); diff --git a/source/MPL/mpl.c b/source/MPL/mpl.c index face25a0f32f..52453fbd0630 100644 --- a/source/MPL/mpl.c +++ b/source/MPL/mpl.c @@ -501,7 +501,7 @@ static void mpl_buffer_transmit(mpl_domain_t *domain, mpl_buffered_message_t *me memcpy(buf->src_sa.address, message->message + IPV6_HDROFF_SRC_ADDR, 16); ipv6_transmit_multicast_on_interface(buf, domain->interface); - tr_debug("MPL transmit %u", mpl_buffer_sequence(message)); + tr_info("MPL transmit %u", mpl_buffer_sequence(message)); } static void mpl_buffer_inconsistent(const mpl_domain_t *domain, mpl_buffered_message_t *message)