Fix RPL logging output
@@ -101,12 +101,12 @@ rpl_print_neighbor_list(void)
rpl_parent_t *p = nbr_table_head(rpl_parents);
clock_time_t clock_now = clock_time();
- printf("RPL: MOP %u OCP %u rank %u dioint %u, nbr count %u\n",
+ LOG_DBG("RPL: MOP %u OCP %u rank %u dioint %u, nbr count %u\n",
default_instance->mop, default_instance->of->ocp, curr_rank, curr_dio_interval, uip_ds6_nbr_num());
while(p != NULL) {
const struct link_stats *stats = rpl_get_parent_link_stats(p);
uip_ipaddr_t *parent_addr = rpl_parent_get_ipaddr(p);
- printf("RPL: nbr %3u %5u, %5u => %5u -- %2u %c%c (last tx %u min ago)\n",
+ LOG_DBG("RPL: nbr %02x %5u, %5u => %5u -- %2u %c%c (last tx %u min ago)\n",
parent_addr != NULL ? parent_addr->u8[15] : 0x0,
p->rank,
rpl_get_parent_link_metric(p),
@@ -118,7 +118,7 @@ rpl_print_neighbor_list(void)
);
p = nbr_table_next(rpl_parents, p);
}
- printf("RPL: end of list\n");
+ LOG_DBG("RPL: end of list\n");
}
}
/*---------------------------------------------------------------------------*/
@@ -557,7 +557,7 @@ rpl_set_default_route(rpl_instance_t *instance, uip_ipaddr_t *from)
if(from != NULL) {
LOG_DBG("Adding default route through ");
LOG_DBG_6ADDR(from);
- LOG_DBG("\n");
+ LOG_DBG_("\n");
instance->def_route = uip_ds6_defrt_add(from,
RPL_DEFAULT_ROUTE_INFINITE_LIFETIME ? 0 : RPL_LIFETIME(instance, instance->default_lifetime));
if(instance->def_route == NULL) {
