diff --git a/core/net/neighbor-info.c b/core/net/neighbor-info.c index c36a2b8a5..35c072247 100644 --- a/core/net/neighbor-info.c +++ b/core/net/neighbor-info.c @@ -110,18 +110,16 @@ neighbor_info_packet_sent(int status, int numtx) return; } - PRINTF("neighbor-info: packet sent to %d.%d, status=%d, numtx=%d\n", + packet_metric = numtx; + + PRINTF("neighbor-info: packet sent to %d.%d, status=%d, metric=%u\n", dest->u8[sizeof(*dest) - 2], dest->u8[sizeof(*dest) - 1], - status, numtx); + status, (unsigned)packet_metric); switch(status) { case MAC_TX_OK: - packet_metric = numtx; add_neighbor(dest); break; - case MAC_TX_COLLISION: - packet_metric = numtx; - break; case MAC_TX_NOACK: packet_metric = ETX_NOACK_PENALTY; break;