Skip to content

Commit

Permalink
Trace level updates (ARMmbed#2247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarkko Paso authored Dec 4, 2019
1 parent 6867dd7 commit a58c71b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int ws_bootstrap_tasklet_init(protocol_interface_info_entry_t *cur)
{
if (cur->bootStrapId < 0) {
cur->bootStrapId = eventOS_event_handler_create(&ws_bootstrap_event_handler, WS_INIT_EVENT);
tr_debug("WS tasklet init");
tr_info("WS tasklet init");
}

if (cur->bootStrapId < 0) {
Expand Down Expand Up @@ -807,7 +807,7 @@ static int8_t ws_bootstrap_down(protocol_interface_info_entry_t *cur)
return -1;
}

tr_debug("Wi-SUN ifdown");
tr_info("Wi-SUN ifdown");

// Reset WS information
// ws_common_reset(cur)
Expand Down Expand Up @@ -2639,7 +2639,7 @@ static void ws_bootstrap_event_handler(arm_event_s *event)
cur->ws_info->trickle_pcs_running = false;

if (cur->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
tr_debug("Border router start network");
tr_info("Border router start network");

if (!ws_bbr_ready_to_start(cur)) {
// Wi-SUN not started yet we wait for Border router permission
Expand Down
4 changes: 2 additions & 2 deletions source/MAC/IEEE802_15_4/mac_mcps_sap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1321,15 +1321,15 @@ static void mac_common_data_confirmation_handle(protocol_interface_rf_mac_setup_
timer_mac_stop(rf_mac_setup);
if (m_event == MAC_CCA_FAIL) {
sw_mac_stats_update(rf_mac_setup, STAT_MAC_TX_CCA_FAIL, 0);
tr_debug("MAC CCA fail");
tr_info("MAC CCA fail");
/* CCA fail */
//rf_mac_setup->cca_failure++;
buf->status = MLME_BUSY_CHAN;
} else {
sw_mac_stats_update(rf_mac_setup, STAT_MAC_TX_COUNT, buf->mac_payload_length);
if (m_event == MAC_TX_FAIL) {
sw_mac_stats_update(rf_mac_setup, STAT_MAC_TX_FAIL, 0);
tr_debug("MAC tx fail");
tr_info("MAC tx fail");
buf->status = MLME_TX_NO_ACK;
} else if (m_event == MAC_TX_DONE) {
if (mac_is_ack_request_set(buf) == false) {
Expand Down
4 changes: 2 additions & 2 deletions source/NWK_INTERFACE/protocol_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,10 @@ void nwk_bootsrap_state_update(arm_nwk_interface_status_type_e posted_event, pro
default:
mac_data_poll_protocol_poll_mode_disable(cur);
if (!cur->rpl_domain) {
tr_debug("NON RPL Ready");
tr_info("NON RPL Ready");
//nwk_protocol_poll_mode_disable(cur->nwk_id, 0);
} else {
tr_debug("RPL Ready");
tr_info("RPL Ready");
}
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion source/RPL/rpl_upward.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ void rpl_instance_run_parent_selection(rpl_instance_t *instance)
if (original_preferred != preferred_parent) {
protocol_stats_update(STATS_RPL_PARENT_CHANGE, 1);
if (preferred_parent) {
tr_debug("New preferred parent %s", trace_array(preferred_parent->ll_address, 16));
tr_info("New preferred parent %s", trace_array(preferred_parent->ll_address, 16));
}
}

Expand Down

0 comments on commit a58c71b

Please sign in to comment.