TSCH: minor logging enhancement

This commit is contained in:
Simon Duquennoy 2016-06-23 18:37:42 +02:00
parent 5a1a8e84d8
commit b1dc8205f0

View file

@ -928,7 +928,10 @@ send_packet(mac_callback_t sent, void *ptr)
/* Enqueue packet */ /* Enqueue packet */
p = tsch_queue_add_packet(addr, sent, ptr); p = tsch_queue_add_packet(addr, sent, ptr);
if(p == NULL) { if(p == NULL) {
PRINTF("TSCH:! can't send packet !tsch_queue_add_packet\n"); PRINTF("TSCH:! can't send packet to %u with seqno %u, queue %u %u\n",
TSCH_LOG_ID_FROM_LINKADDR(addr), tsch_packet_seqno,
packet_count_before,
tsch_queue_packet_count(addr));
ret = MAC_TX_ERR; ret = MAC_TX_ERR;
} else { } else {
p->header_len = hdr_len; p->header_len = hdr_len;