Debug formatting fixes

This commit is contained in:
adamdunkels 2008-01-08 07:55:15 +00:00
parent f737127cca
commit 0c748d7dd2

View file

@ -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);