Merge pull request #1179 from pablocorbalan/rpl-nbr-state

Changed RPL IPv6 NBR Callback Print Statement
This commit is contained in:
Nicolas Tsiftes 2015-08-06 09:54:20 +02:00
commit a410f0cd23

View file

@ -277,9 +277,9 @@ rpl_ipv6_neighbor_callback(uip_ds6_nbr_t *nbr)
rpl_instance_t *instance; rpl_instance_t *instance;
rpl_instance_t *end; rpl_instance_t *end;
PRINTF("RPL: Removing neighbor "); PRINTF("RPL: Neighbor state changed for ");
PRINT6ADDR(&nbr->ipaddr); PRINT6ADDR(&nbr->ipaddr);
PRINTF("\n"); PRINTF(", nscount=%u, state=%u\n", nbr->nscount, nbr->state);
for(instance = &instance_table[0], end = instance + RPL_MAX_INSTANCES; instance < end; ++instance) { for(instance = &instance_table[0], end = instance + RPL_MAX_INSTANCES; instance < end; ++instance) {
if(instance->used == 1 ) { if(instance->used == 1 ) {
p = rpl_find_parent_any_dag(instance, &nbr->ipaddr); p = rpl_find_parent_any_dag(instance, &nbr->ipaddr);