]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
serial: sandbox: optimize puts
authorMike Frysinger <vapier@gentoo.org>
Wed, 26 Oct 2011 00:20:39 +0000 (00:20 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 3 Nov 2011 21:35:12 +0000 (22:35 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/serial/sandbox.c

index 0d65587f71aa230ad15982d266eee17a479abbd1..cae6c9411c808edb14a8a69eab788da7e29b7385 100644 (file)
@@ -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)