Skip to content

Commit bd51f9f

Browse files
author
Jarkko Paso
authored
Merge pull request ARMmbed#2117 from ARMmbed/IOTTHD-3587
RPL: trace new preferred parent
2 parents b016d52 + 92d3a92 commit bd51f9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: source/RPL/rpl_upward.c

+3
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,9 @@ void rpl_instance_run_parent_selection(rpl_instance_t *instance)
14151415

14161416
if (original_preferred != preferred_parent) {
14171417
protocol_stats_update(STATS_RPL_PARENT_CHANGE, 1);
1418+
if (preferred_parent) {
1419+
tr_debug("New preferred parent %s", trace_array(preferred_parent->ll_address, 16));
1420+
}
14181421
}
14191422

14201423
// Sets new preferred parent

0 commit comments

Comments
 (0)