mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 03:58:18 -04: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)
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user