From: Mike Frysinger Date: Wed, 26 Oct 2011 00:20:39 +0000 (+0000) Subject: serial: sandbox: optimize puts X-Git-Tag: v2011.12-rc1~313 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5778d54afc99b6a9321acf2d8b5ad87d246008dc;p=u-boot serial: sandbox: optimize puts Signed-off-by: Mike Frysinger Acked-by: Simon Glass --- diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index 0d65587f71..cae6c9411c 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -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)