RPL: logging fixes

This commit is contained in:
Simon Duquennoy 2015-11-29 21:48:53 +01:00 committed by Simon Duquennoy
parent 4499d80348
commit d14b76d869

View file

@ -459,7 +459,7 @@ handle_probing_timer(void *ptr)
const struct link_stats *stats = rpl_get_parent_link_stats(probing_target);
(void)stats;
PRINTF("RPL: probing %u %s last tx %u min ago\n",
rpl_get_parent_llpaddr(probing_target)->u8[7],
rpl_get_parent_lladdr(probing_target)->u8[7],
instance->urgent_probing_target != NULL ? "(urgent)" : "",
probing_target != NULL ?
(unsigned)((clock_time() - stats->last_tx_time) / (60 * CLOCK_SECOND)) : 0