Skip to content
Snippets Groups Projects
Commit ce8c3612 authored by Niclas Finne's avatar Niclas Finne
Browse files

Minor code cleanup of Cooja log

parent 8e802712
No related branches found
No related tags found
No related merge requests found
......@@ -130,14 +130,9 @@ dbg_putchar(int c)
unsigned int
dbg_send_bytes(const unsigned char *s, unsigned int len)
{
unsigned int i = 0;
while(s && *s != 0) {
if(i >= len) {
break;
}
unsigned int i;
for(i = 0; i < len && s && *s != 0; i++) {
putchar(*s++);
i++;
}
return i;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment