nbr-policy: change log level from INFO to DBG for most logs
This commit is contained in:
parent
471a7093b9
commit
3617250383
|
@ -104,7 +104,7 @@ update_state(void)
|
||||||
/* how many more IP neighbors can be have? */
|
/* how many more IP neighbors can be have? */
|
||||||
num_free = NBR_TABLE_MAX_NEIGHBORS - num_used;
|
num_free = NBR_TABLE_MAX_NEIGHBORS - num_used;
|
||||||
|
|
||||||
LOG_INFO("nbr-policy: free: %d, parents: %d\n", num_free, num_parents);
|
LOG_DBG("nbr-policy: free: %d, parents: %d\n", num_free, num_parents);
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static const linkaddr_t *
|
static const linkaddr_t *
|
||||||
|
@ -127,12 +127,12 @@ find_removable_dio(uip_ipaddr_t *from, rpl_dio_t *dio)
|
||||||
/* Add the new neighbor only if it is better than the current worst. */
|
/* Add the new neighbor only if it is better than the current worst. */
|
||||||
if(dio->rank + curr_instance.min_hoprankinc < worst_rank - curr_instance.min_hoprankinc / 2) {
|
if(dio->rank + curr_instance.min_hoprankinc < worst_rank - curr_instance.min_hoprankinc / 2) {
|
||||||
/* Found *great* neighbor - add! */
|
/* Found *great* neighbor - add! */
|
||||||
LOG_INFO("nbr-policy: DIO rank %u, worst_rank %u -- add to cache\n",
|
LOG_DBG("nbr-policy: DIO rank %u, worst_rank %u -- add to cache\n",
|
||||||
dio->rank, worst_rank);
|
dio->rank, worst_rank);
|
||||||
return worst_rank_nbr_lladdr;
|
return worst_rank_nbr_lladdr;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_INFO("nbr-policy: DIO rank %u, worst_rank %u -- do not add to cache\n",
|
LOG_DBG("nbr-policy: DIO rank %u, worst_rank %u -- do not add to cache\n",
|
||||||
dio->rank, worst_rank);
|
dio->rank, worst_rank);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue