Improved debugging output

This commit is contained in:
adamdunkels 2008-08-15 19:28:33 +00:00
parent 9324dc1e7d
commit 41dcd78c8b
1 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: trickle.c,v 1.11 2008/07/08 10:59:31 adamdunkels Exp $
* $Id: trickle.c,v 1.12 2008/08/15 19:28:33 adamdunkels Exp $
*/
/**
@ -138,9 +138,13 @@ recv(struct broadcast_conn *bc, rimeaddr_t *from)
struct trickle_conn *c = (struct trickle_conn *)bc;
uint16_t seqno = rimebuf_attr(RIMEBUF_ATTR_EPACKET_ID);
PRINTF("%d.%d: trickle recv seqno %d our %d\n",
PRINTF("%d.%d: trickle recv seqno %d from %d.%d our %d data len %d channel %d\n",
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
seqno, c->seqno);
seqno,
from->u8[0], from->u8[1],
c->seqno,
rimebuf_datalen(),
rimebuf_attr(RIMEBUF_ATTR_CHANNEL));
if(seqno == c->seqno) {
/* c->cb->recv(c);*/