From 29cc2b12668860b74816547d61c2b44bfe38c90f Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 23 Jan 2008 16:10:10 +0000 Subject: [PATCH] Updated debug printouts --- core/net/rime/abc.c | 9 ++++----- core/net/rime/ibc.c | 7 ++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/net/rime/abc.c b/core/net/rime/abc.c index 6d524aefb..bf5e4b543 100644 --- a/core/net/rime/abc.c +++ b/core/net/rime/abc.c @@ -36,7 +36,7 @@ * * Author: Adam Dunkels * - * $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) { diff --git a/core/net/rime/ibc.c b/core/net/rime/ibc.c index 06e73a574..2212a77b8 100644 --- a/core/net/rime/ibc.c +++ b/core/net/rime/ibc.c @@ -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); } /*---------------------------------------------------------------------------*/