From d53a3a3df2f24f897daafd7bf25bde79a6632fcb Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Sun, 29 Nov 2015 21:48:53 +0100 Subject: [PATCH] RPL: logging fixes --- core/net/rpl/rpl-dag.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/net/rpl/rpl-dag.c b/core/net/rpl/rpl-dag.c index 8435ca207..447be3df2 100644 --- a/core/net/rpl/rpl-dag.c +++ b/core/net/rpl/rpl-dag.c @@ -121,8 +121,7 @@ rpl_print_neighbor_list(void) uip_ds6_nbr_t * rpl_get_nbr(rpl_parent_t *parent) { - linkaddr_t *lladdr = NULL; - lladdr = nbr_table_get_lladdr(rpl_parents, parent); + const linkaddr_t *lladdr = rpl_get_parent_lladdr(parent); if(lladdr != NULL) { return nbr_table_get_from_lladdr(ds6_neighbors, lladdr); } else { @@ -1296,7 +1295,8 @@ rpl_process_parent_event(rpl_instance_t *instance, rpl_parent_t *p) if(!acceptable_rank(p->dag, p->rank)) { /* The candidate parent is no longer valid: the rank increase resulting from the choice of it as a parent would be too high. */ - PRINTF("RPL: Unacceptable rank %u\n", (unsigned)p->rank); + PRINTF("RPL: Unacceptable rank %u (Current min %u, MaxRankInc %u)\n", (unsigned)p->rank, + p->dag->min_rank, p->dag->instance->max_rankinc); rpl_nullify_parent(p); if(p != instance->current_dag->preferred_parent) { return 0;