From: Mike Frysinger Date: Wed, 26 Oct 2011 00:20:39 +0000 (+0000) Subject: serial: sandbox: optimize puts X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5778d54afc99b6a9321acf2d8b5ad87d246008dc;p=u-boot.git 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)