Skip to content
Snippets Groups Projects
Commit 5778d54a authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

serial: sandbox: optimize puts

parent ed0fc4b1
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,7 @@ void serial_putc(const char ch) ...@@ -44,8 +44,7 @@ void serial_putc(const char ch)
void serial_puts(const char *str) void serial_puts(const char *str)
{ {
while (*str) os_write(1, str, strlen(str));
serial_putc(*str++);
} }
int serial_getc(void) int serial_getc(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment