Skip to content

Commit

Permalink
Clear debug traces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juha Heiskanen committed Nov 4, 2020
1 parent cbac0bb commit 660e178
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 1 addition & 4 deletions source/RPL/rpl_downward.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ void rpl_instance_dao_trigger(rpl_instance_t *instance, uint16_t delay)
}
if (instance->delay_dao_timer == 0 || instance->delay_dao_timer > delay) {
instance->delay_dao_timer = delay;
tr_debug("DAO trigger %" PRIu16, delay);
//tr_debug("DAO trigger %" PRIu16, delay);
}
}

Expand Down Expand Up @@ -1883,14 +1883,12 @@ void rpl_instance_parent_address_reg_timer_update(rpl_instance_t *instance, uint
}

if (rpl_instance_am_root(instance)) {
tr_debug("Root shuold not handle this");
rpl_instance_address_registration_cancel(instance);
return;
}

//Verify that we have selected parent and it have a dao path control
if (!rpl_instance_parent_selection_ready(instance)) {
tr_debug("Parent select not ready");
rpl_instance_address_registration_cancel(instance);
return;
}
Expand Down Expand Up @@ -1933,7 +1931,6 @@ void rpl_instance_parent_address_reg_timer_update(rpl_instance_t *instance, uint

if_address_entry_t *address = rpl_interface_addr_get(interface, dao_target->prefix);
if (!address) {
tr_debug("No address for req");
rpl_instance_address_registration_cancel(instance);
return;
}
Expand Down
6 changes: 6 additions & 0 deletions test/nanostack/unittest/stub/rpl_downward_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,17 @@ void rpl_instance_parent_address_reg_timer_update(rpl_instance_t *instance, uint

bool rpl_instance_address_registration_done(protocol_interface_info_entry_t *interface, rpl_instance_t *instance, rpl_neighbour_t *neighbour, uint8_t status)
{
return true;
}

rpl_dao_target_t *rpl_instance_get_active_target_confirmation(rpl_instance_t *instance)
{
return NULL;
}

bool rpl_instance_parent_selection_ready(struct rpl_instance *instance)
{
return true;
}

#endif /* HAVE_RPL */

0 comments on commit 660e178

Please sign in to comment.