Skip to content

Commit

Permalink
Adjust trace levels (ARMmbed#2692)
Browse files Browse the repository at this point in the history
Move some traces from debug-level to info-level in order to get plots
properly generated when application has only info-level traces
enabled.
  • Loading branch information
Arto Kinnunen authored Sep 15, 2021
1 parent 681d9ea commit 0d54d7a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion source/6LoWPAN/Thread/thread_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_bootstrap_6lbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_bootstrap_ffn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion source/6LoWPAN/ws/ws_bootstrap_lfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion source/MAC/IEEE802_15_4/mac_cca_threshold.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion source/MAC/IEEE802_15_4/mac_mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion source/MPL/mpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d54d7a

Please sign in to comment.