Better debug output
This commit is contained in:
parent
6005437b27
commit
5c169ac291
@ -36,7 +36,7 @@
|
||||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: abc.c,v 1.14 2007/10/02 13:41:12 nifi Exp $
|
||||
* $Id: abc.c,v 1.15 2008/01/21 12:19:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -86,7 +86,9 @@ abc_send(struct abc_conn *c)
|
||||
if(rimebuf_hdralloc(sizeof(struct abc_hdr))) {
|
||||
struct abc_hdr *hdr = rimebuf_hdrptr();
|
||||
|
||||
PRINTF("%d: abc: abc_send on channel %d\n", rimeaddr_node_addr.u16[0], c->channel);
|
||||
PRINTF("%d.%d: abc: abc_send on channel %d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
c->channel);
|
||||
|
||||
hdr->channel = c->channel;
|
||||
rime_output();
|
||||
@ -103,7 +105,9 @@ abc_input_packet(void)
|
||||
|
||||
hdr = rimebuf_dataptr();
|
||||
|
||||
PRINTF("%d: abc: abc_input_packet on channel %d\n", rimeaddr_node_addr.u16[0], hdr->channel);
|
||||
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))) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user