mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
serial: sandbox: optimize puts
Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ed0fc4b172
commit
5778d54afc
|
@ -44,8 +44,7 @@ void serial_putc(const char ch)
|
|||
|
||||
void serial_puts(const char *str)
|
||||
{
|
||||
while (*str)
|
||||
serial_putc(*str++);
|
||||
os_write(1, str, strlen(str));
|
||||
}
|
||||
|
||||
int serial_getc(void)
|
||||
|
|
Loading…
Reference in New Issue
Block a user