Updated debug printouts

This commit is contained in:
adamdunkels 2008-01-23 16:10:10 +00:00
parent f4dd9ccd5b
commit 29cc2b1266
2 changed files with 8 additions and 8 deletions

View file

@ -36,7 +36,7 @@
* *
* Author: Adam Dunkels <adam@sics.se> * 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(); 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))) { 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) { for(c = list_head(channels); c != NULL; c = c->next) {
if(c->channel == hdr->channel) { if(c->channel == hdr->channel) {

View file

@ -33,7 +33,7 @@
* *
* This file is part of the Contiki operating system. * 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); rimeaddr_copy(&sender, &hdr->sender);
rimebuf_hdrreduce(sizeof(struct ibc_hdr)); rimebuf_hdrreduce(sizeof(struct ibc_hdr));
PRINTF("%d.%d: ibc: recv_from_bc\n", PRINTF("%d.%d: ibc: from %d.%d\n",
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]); rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
sender.u8[0], sender.u8[1]);
c->u->recv(c, &sender); c->u->recv(c, &sender);
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/