Updated debug output

This commit is contained in:
adamdunkels 2008-01-14 09:36:35 +00:00
parent 94f8978443
commit 7fcb1f3b2a

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: rucb.c,v 1.4 2007/11/28 20:03:50 adamdunkels Exp $
* $Id: rucb.c,v 1.5 2008/01/14 09:36:35 adamdunkels Exp $
*/
/**
@ -71,7 +71,8 @@ static void
acked(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
{
struct rucb_conn *c = (struct rucb_conn *)ruc;
PRINTF("acked\n");
PRINTF("%d.%d: rucb acked\n",
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
c->chunk++;
if(read_data(c) > 0) {
ruc_send(&c->c, &c->receiver, MAX_TRANSMISSIONS);
@ -82,7 +83,8 @@ static void
timedout(struct ruc_conn *ruc, rimeaddr_t *to, u8_t retransmissions)
{
struct rucb_conn *c = (struct rucb_conn *)ruc;
PRINTF("timedout\n");
PRINTF("%d.%d: rucb timedout\n",
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1]);
if(c->u->timedout) {
c->u->timedout(c);
}