Skip to content

Commit 660e178

Browse files
author
Juha Heiskanen
committed
Clear debug traces.
1 parent cbac0bb commit 660e178

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

source/RPL/rpl_downward.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void rpl_instance_dao_trigger(rpl_instance_t *instance, uint16_t delay)
407407
}
408408
if (instance->delay_dao_timer == 0 || instance->delay_dao_timer > delay) {
409409
instance->delay_dao_timer = delay;
410-
tr_debug("DAO trigger %" PRIu16, delay);
410+
//tr_debug("DAO trigger %" PRIu16, delay);
411411
}
412412
}
413413

@@ -1883,14 +1883,12 @@ void rpl_instance_parent_address_reg_timer_update(rpl_instance_t *instance, uint
18831883
}
18841884

18851885
if (rpl_instance_am_root(instance)) {
1886-
tr_debug("Root shuold not handle this");
18871886
rpl_instance_address_registration_cancel(instance);
18881887
return;
18891888
}
18901889

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

19341932
if_address_entry_t *address = rpl_interface_addr_get(interface, dao_target->prefix);
19351933
if (!address) {
1936-
tr_debug("No address for req");
19371934
rpl_instance_address_registration_cancel(instance);
19381935
return;
19391936
}

test/nanostack/unittest/stub/rpl_downward_stub.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,17 @@ void rpl_instance_parent_address_reg_timer_update(rpl_instance_t *instance, uint
153153

154154
bool rpl_instance_address_registration_done(protocol_interface_info_entry_t *interface, rpl_instance_t *instance, rpl_neighbour_t *neighbour, uint8_t status)
155155
{
156+
return true;
156157
}
157158

158159
rpl_dao_target_t *rpl_instance_get_active_target_confirmation(rpl_instance_t *instance)
159160
{
160161
return NULL;
161162
}
162163

164+
bool rpl_instance_parent_selection_ready(struct rpl_instance *instance)
165+
{
166+
return true;
167+
}
168+
163169
#endif /* HAVE_RPL */

0 commit comments

Comments
 (0)