Updated debug printouts
This commit is contained in:
parent
f4dd9ccd5b
commit
29cc2b1266
@ -36,7 +36,7 @@
|
||||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: abc.c,v 1.15 2008/01/21 12:19:27 adamdunkels Exp $
|
||||
* $Id: abc.c,v 1.16 2008/01/23 16:10:10 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -105,11 +105,10 @@ abc_input_packet(void)
|
||||
|
||||
hdr = rimebuf_dataptr();
|
||||
|
||||
PRINTF("%d.%d: abc: abc_input_packet on channel %d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
hdr->channel);
|
||||
|
||||
if(rimebuf_hdrreduce(sizeof(struct abc_hdr))) {
|
||||
PRINTF("%d.%d: abc: abc_input_packet on channel %d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
hdr->channel);
|
||||
|
||||
for(c = list_head(channels); c != NULL; c = c->next) {
|
||||
if(c->channel == hdr->channel) {
|
||||
|
@ -33,7 +33,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ibc.c,v 1.11 2008/01/08 07:55:15 adamdunkels Exp $
|
||||
* $Id: ibc.c,v 1.12 2008/01/23 16:10:10 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -69,8 +69,9 @@ recv_from_abc(struct abc_conn *bc)
|
||||
rimeaddr_copy(&sender, &hdr->sender);
|
||||
|
||||
rimebuf_hdrreduce(sizeof(struct ibc_hdr));
|
||||
PRINTF("%d.%d: ibc: recv_from_bc\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
|
||||
PRINTF("%d.%d: ibc: from %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
sender.u8[0], sender.u8[1]);
|
||||
c->u->recv(c, &sender);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user