diff --git a/core/net/mac/tsch/tsch-queue.c b/core/net/mac/tsch/tsch-queue.c index e8ebe7aa3..41f319b1c 100644 --- a/core/net/mac/tsch/tsch-queue.c +++ b/core/net/mac/tsch/tsch-queue.c @@ -202,6 +202,7 @@ tsch_queue_flush_nbr_queue(struct tsch_neighbor *n) /* Free packet queuebuf */ tsch_queue_free_packet(p); } + PRINTF("TSCH-queue: packet is deleted packet=%p\n", p); } } /*---------------------------------------------------------------------------*/ @@ -253,6 +254,8 @@ tsch_queue_add_packet(const linkaddr_t *addr, mac_callback_t sent, void *ptr) /* Add to ringbuf (actual add committed through atomic operation) */ n->tx_array[put_index] = p; ringbufindex_put(&n->tx_ringbuf); + PRINTF("TSCH-queue: packet is added put_index=%u, packet=%p\n", + put_index, p); return p; } else { memb_free(&packet_memb, p); @@ -288,6 +291,7 @@ tsch_queue_remove_packet_from_queue(struct tsch_neighbor *n) /* Get and remove packet from ringbuf (remove committed through an atomic operation */ int16_t get_index = ringbufindex_get(&n->tx_ringbuf); if(get_index != -1) { + PRINTF("TSCH-queue: packet is removed, get_index=%u\n", get_index); return n->tx_array[get_index]; } else { return NULL;