Skip to content

Commit

Permalink
Cleaned unnessary debug trace.
Browse files Browse the repository at this point in the history
Change-Id: I2cd20b387248d5f76bcf8ca248ae9684757c1a30
  • Loading branch information
Juha Heiskanen committed May 29, 2019
1 parent 3608153 commit 8bb4ab5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions source/6LoWPAN/ws/ws_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,13 +1429,13 @@ static bool ws_neighbor_entry_nud_notify(mac_neighbor_table_entry_t *entry_ptr,
uint32_t probe_period = WS_PROBE_INIT_BASE_SECONDS << etx_entry->etx_samples;
uint32_t time_block = 1 << etx_entry->etx_samples;
if (time_from_start >= probe_period) {
tr_debug("Link Probe test %u Sample trig", etx_entry->etx_samples);
//tr_debug("Link Probe test %u Sample trig", etx_entry->etx_samples);
activate_nud = true;
} else if (time_from_start > time_block) {
uint16_t switch_prob = randLIB_get_random_in_range(0, probe_period - 1);
//Take Random from time WS_NEIGHBOR_NUD_TIMEOUT - WS_NEIGHBOR_NUD_TIMEOUT*1.5
if (switch_prob < 2) {
tr_debug("Link Probe test with jitter %"PRIu32", sample %u", time_from_start, etx_entry->etx_samples);
//tr_debug("Link Probe test with jitter %"PRIu32", sample %u", time_from_start, etx_entry->etx_samples);
activate_nud = true;
}
}
Expand Down
2 changes: 0 additions & 2 deletions source/Service_Libs/blacklist/blacklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ bool blacklist_reject(const uint8_t *ll64_address)
tr_debug("blacklist full reject");
return true;
} else {
tr_debug("blacklist not found %s", trace_array(ll64_address + 8, 8));
return false;
}
}
Expand Down Expand Up @@ -144,7 +143,6 @@ void blacklist_update(const uint8_t *ll64_address, bool success)
}
/* TTL is blacklist entry lifetime + from 1.0 to 1.5 * interval */
blacklist_entry->ttl = blacklist_data->blacklist_entry_lifetime + randLIB_randomise_base(blacklist_entry->interval, 0x8000, 0xC000);
tr_debug("Blacklist updated, ttl=%"PRIu16, blacklist_entry->ttl);
} else {
tr_debug("Blacklist add");
blacklist_entry_add(ll64_address + 8);
Expand Down
6 changes: 3 additions & 3 deletions source/Service_Libs/etx/etx.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ void etx_max_update_set(uint16_t etx_max_update)
etx_storage_t *etx_storage_entry_get(int8_t interface_id, uint8_t attribute_index)
{
if (etx_info.interface_id != interface_id || !etx_info.etx_storage_list || attribute_index >= etx_info.ext_storage_list_size) {
tr_debug("Unknow ID or un initilized ETX %u", attribute_index);
//tr_debug("Unknow ID or un initilized ETX %u", attribute_index);
return NULL;
}

Expand Down Expand Up @@ -745,7 +745,7 @@ static void etx_accum_failures_callback_needed_check(etx_storage_t *entry, uint8
void etx_neighbor_remove(int8_t interface_id, uint8_t attribute_index)
{

tr_debug("Remove attribute %u", attribute_index);
//tr_debug("Remove attribute %u", attribute_index);
uint16_t stored_diff_etx;
etx_storage_t *entry = etx_storage_entry_get(interface_id, attribute_index);
if (entry && etx_info.callback_ptr) {
Expand Down Expand Up @@ -780,7 +780,7 @@ void etx_neighbor_remove(int8_t interface_id, uint8_t attribute_index)
void etx_neighbor_add(int8_t interface_id, uint8_t attribute_index)
{

tr_debug("Add attribute %u", attribute_index);
//tr_debug("Add attribute %u", attribute_index);
uint16_t stored_diff_etx;
etx_storage_t *entry = etx_storage_entry_get(interface_id, attribute_index);
if (entry && etx_info.callback_ptr) {
Expand Down
4 changes: 2 additions & 2 deletions source/Service_Libs/mac_neighbor_table/mac_neighbor_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void mac_neighbor_table_neighbor_timeout_update(mac_neighbor_table_t *table_clas
if (table_class->user_nud_notify_cb(cur, table_class->table_user_identifier)) {
table_class->active_nud_process++;
cur->nud_active = true;
tr_debug("Nud started index %u : %"PRIu32" time ", cur->index, cur->lifetime);
//tr_debug("Nud started index %u : %"PRIu32" time ", cur->index, cur->lifetime);
}

} else {
Expand Down Expand Up @@ -176,7 +176,7 @@ void mac_neighbor_table_neighbor_refresh(mac_neighbor_table_t *table_class, mac_
neighbor_entry->lifetime = life_time;
neighbor_entry->link_lifetime = life_time;
if (neighbor_entry->nud_active) {
tr_debug("Node index NUD response %u : %"PRIu32" time ", neighbor_entry->index, neighbor_entry->lifetime);
//tr_debug("Node index NUD response %u : %"PRIu32" time ", neighbor_entry->index, neighbor_entry->lifetime);
neighbor_entry->nud_active = false;
table_class->active_nud_process--;
}
Expand Down

0 comments on commit 8bb4ab5

Please sign in to comment.