mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Improved debugging output
This commit is contained in:
parent
9324dc1e7d
commit
41dcd78c8b
@ -33,7 +33,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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;
|
struct trickle_conn *c = (struct trickle_conn *)bc;
|
||||||
uint16_t seqno = rimebuf_attr(RIMEBUF_ATTR_EPACKET_ID);
|
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],
|
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) {
|
if(seqno == c->seqno) {
|
||||||
/* c->cb->recv(c);*/
|
/* c->cb->recv(c);*/
|
||||||
|
Loading…
Reference in New Issue
Block a user