From 0c748d7dd22ebb4c984faa9e13096dceede07660 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 8 Jan 2008 07:55:15 +0000 Subject: [PATCH] Debug formatting fixes --- core/net/rime/ibc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/net/rime/ibc.c b/core/net/rime/ibc.c index f194e5c52..06e73a574 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.10 2007/05/15 08:09:21 adamdunkels Exp $ + * $Id: ibc.c,v 1.11 2008/01/08 07:55:15 adamdunkels Exp $ */ /** @@ -69,7 +69,8 @@ recv_from_abc(struct abc_conn *bc) rimeaddr_copy(&sender, &hdr->sender); rimebuf_hdrreduce(sizeof(struct ibc_hdr)); - PRINTF("%d: ibc: recv_from_bc\n", rimeaddr_node_addr.u16); + PRINTF("%d.%d: ibc: recv_from_bc\n", + rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]); c->u->recv(c, &sender); } /*---------------------------------------------------------------------------*/ @@ -92,7 +93,8 @@ ibc_close(struct ibc_conn *c) int ibc_send(struct ibc_conn *c) { - PRINTF("%d: ibc_send\n", rimeaddr_node_addr.u16); + PRINTF("%d.%d: ibc_send\n", + rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]); if(rimebuf_hdralloc(sizeof(struct ibc_hdr))) { struct ibc_hdr *hdr = rimebuf_hdrptr(); rimeaddr_copy(&hdr->sender, &rimeaddr_node_addr);