From 5778d54afc99b6a9321acf2d8b5ad87d246008dc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 26 Oct 2011 00:20:39 +0000 Subject: [PATCH] serial: sandbox: optimize puts Signed-off-by: Mike Frysinger Acked-by: Simon Glass --- drivers/serial/sandbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.25.1