Remove unguarded printf()

This commit is contained in:
adamdunkels 2008-11-09 10:53:25 +00:00
parent 6677b949b8
commit 942e8f37c2
3 changed files with 14 additions and 14 deletions

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: shell-netfile.c,v 1.5 2008/08/15 18:58:42 adamdunkels Exp $ * $Id: shell-netfile.c,v 1.6 2008/11/09 10:53:25 adamdunkels Exp $
*/ */
/** /**
@ -82,13 +82,13 @@ write_chunk(struct rudolph0_conn *c, int offset, int flag,
do { do {
if(datalen > 0) { if(datalen > 0) {
shell_output(&recvnetfile_command, data, datalen, "", 0); shell_output(&recvnetfile_command, data, datalen, "", 0);
printf("write_chunk wrote %d bytes at %d\n", datalen, offset); /* printf("write_chunk wrote %d bytes at %d\n", datalen, offset);*/
} }
PT_YIELD(&recvnetfilept); PT_YIELD(&recvnetfilept);
} while(flag != RUDOLPH0_FLAG_LASTCHUNK); } while(flag != RUDOLPH0_FLAG_LASTCHUNK);
shell_output(&recvnetfile_command, data, datalen, "", 0); shell_output(&recvnetfile_command, data, datalen, "", 0);
printf("write_chunk wrote %d bytes at %d\n", datalen, offset); /* printf("write_chunk wrote %d bytes at %d\n", datalen, offset);*/
shell_output(&recvnetfile_command, "", 0, "", 0); shell_output(&recvnetfile_command, "", 0, "", 0);
leds_off(LEDS_YELLOW); leds_off(LEDS_YELLOW);
receiving_file = 0; receiving_file = 0;
@ -107,7 +107,7 @@ read_chunk(struct rudolph0_conn *c, int offset, uint8_t *to, int maxsize)
cfs_seek(fd, offset); cfs_seek(fd, offset);
ret = cfs_read(fd, to, maxsize); ret = cfs_read(fd, to, maxsize);
printf("read_chunk %d bytes at %d, %d\n", ret, offset, (unsigned char)to[0]); /* printf("read_chunk %d bytes at %d, %d\n", ret, offset, (unsigned char)to[0]);*/
cfs_close(fd); cfs_close(fd);
return ret; return ret;
} }

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: shell-rsh.c,v 1.1 2008/02/04 23:42:17 adamdunkels Exp $ * $Id: shell-rsh.c,v 1.2 2008/11/09 10:53:25 adamdunkels Exp $
*/ */
/** /**
@ -130,8 +130,8 @@ PROCESS_THREAD(shell_rsh_server_process, ev, data)
memcpy((char *)rimebuf_dataptr() + input->len1, memcpy((char *)rimebuf_dataptr() + input->len1,
input->data2, input->len2); input->data2, input->len2);
rimebuf_set_datalen(input->len1 + input->len2); rimebuf_set_datalen(input->len1 + input->len2);
printf("Sending meshconn with %d + %d bytes\n", /* printf("Sending meshconn with %d + %d bytes\n",
input->len1, input->len2); input->len1, input->len2);*/
meshconn_send(&meshconn); meshconn_send(&meshconn);
} }
/* PROCESS_WAIT_EVENT_UNTIL(ev == shell_event_input);*/ /* PROCESS_WAIT_EVENT_UNTIL(ev == shell_event_input);*/
@ -142,7 +142,7 @@ PROCESS_THREAD(shell_rsh_server_process, ev, data)
static void static void
connected_meshconn(struct meshconn_conn *c) connected_meshconn(struct meshconn_conn *c)
{ {
printf("connected\n"); /* printf("connected\n");*/
} }
static void static void
recv_meshconn(struct meshconn_conn *c) recv_meshconn(struct meshconn_conn *c)
@ -185,17 +185,17 @@ recv_meshconn(struct meshconn_conn *c)
static void static void
closed_meshconn(struct meshconn_conn *c) closed_meshconn(struct meshconn_conn *c)
{ {
printf("closed\n"); /* printf("closed\n");*/
} }
static void static void
timedout_meshconn(struct meshconn_conn *c) timedout_meshconn(struct meshconn_conn *c)
{ {
printf("timedout\n"); /* printf("timedout\n");*/
} }
static void static void
reset_meshconn(struct meshconn_conn *c) reset_meshconn(struct meshconn_conn *c)
{ {
printf("reset\n"); /* printf("reset\n");*/
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static struct meshconn_callbacks meshconn_callbacks = { connected_meshconn, static struct meshconn_callbacks meshconn_callbacks = { connected_meshconn,

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: shell-sendtest.c,v 1.3 2008/08/15 18:58:42 adamdunkels Exp $ * $Id: shell-sendtest.c,v 1.4 2008/11/09 10:53:25 adamdunkels Exp $
*/ */
/** /**
@ -74,13 +74,13 @@ write_chunk(struct rucb_conn *c, int offset, int flag,
ether_set_text(buf); ether_set_text(buf);
} }
#endif /* NETSIM */ #endif /* NETSIM */
printf("+"); /* printf("+");*/
} }
static int static int
read_chunk(struct rucb_conn *c, int offset, char *to, int maxsize) read_chunk(struct rucb_conn *c, int offset, char *to, int maxsize)
{ {
int size; int size;
printf("-"); /* printf("-");*/
size = maxsize; size = maxsize;
if(bytecount + maxsize >= filesize) { if(bytecount + maxsize >= filesize) {
size = filesize - bytecount; size = filesize - bytecount;