mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Remove unguarded printf()
This commit is contained in:
parent
6677b949b8
commit
942e8f37c2
@ -28,7 +28,7 @@
|
||||
*
|
||||
* 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 {
|
||||
if(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);
|
||||
} while(flag != RUDOLPH0_FLAG_LASTCHUNK);
|
||||
|
||||
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);
|
||||
leds_off(LEDS_YELLOW);
|
||||
receiving_file = 0;
|
||||
@ -107,7 +107,7 @@ read_chunk(struct rudolph0_conn *c, int offset, uint8_t *to, int maxsize)
|
||||
|
||||
cfs_seek(fd, offset);
|
||||
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);
|
||||
return ret;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
*
|
||||
* 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,
|
||||
input->data2, input->len2);
|
||||
rimebuf_set_datalen(input->len1 + input->len2);
|
||||
printf("Sending meshconn with %d + %d bytes\n",
|
||||
input->len1, input->len2);
|
||||
/* printf("Sending meshconn with %d + %d bytes\n",
|
||||
input->len1, input->len2);*/
|
||||
meshconn_send(&meshconn);
|
||||
}
|
||||
/* PROCESS_WAIT_EVENT_UNTIL(ev == shell_event_input);*/
|
||||
@ -142,7 +142,7 @@ PROCESS_THREAD(shell_rsh_server_process, ev, data)
|
||||
static void
|
||||
connected_meshconn(struct meshconn_conn *c)
|
||||
{
|
||||
printf("connected\n");
|
||||
/* printf("connected\n");*/
|
||||
}
|
||||
static void
|
||||
recv_meshconn(struct meshconn_conn *c)
|
||||
@ -185,17 +185,17 @@ recv_meshconn(struct meshconn_conn *c)
|
||||
static void
|
||||
closed_meshconn(struct meshconn_conn *c)
|
||||
{
|
||||
printf("closed\n");
|
||||
/* printf("closed\n");*/
|
||||
}
|
||||
static void
|
||||
timedout_meshconn(struct meshconn_conn *c)
|
||||
{
|
||||
printf("timedout\n");
|
||||
/* printf("timedout\n");*/
|
||||
}
|
||||
static void
|
||||
reset_meshconn(struct meshconn_conn *c)
|
||||
{
|
||||
printf("reset\n");
|
||||
/* printf("reset\n");*/
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static struct meshconn_callbacks meshconn_callbacks = { connected_meshconn,
|
||||
|
@ -28,7 +28,7 @@
|
||||
*
|
||||
* 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);
|
||||
}
|
||||
#endif /* NETSIM */
|
||||
printf("+");
|
||||
/* printf("+");*/
|
||||
}
|
||||
static int
|
||||
read_chunk(struct rucb_conn *c, int offset, char *to, int maxsize)
|
||||
{
|
||||
int size;
|
||||
printf("-");
|
||||
/* printf("-");*/
|
||||
size = maxsize;
|
||||
if(bytecount + maxsize >= filesize) {
|
||||
size = filesize - bytecount;
|
||||
|
Loading…
Reference in New Issue
Block a user