commit | d42e06655b97455bfac0e5d09677dc4b13ea867b | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Wed Oct 26 00:20:39 2011 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Thu Nov 03 22:35:12 2011 +0100 |
tree | 6090f0252a36e5afd15f922b42ee18a2b50a3470 | |
parent | c1285cb57e1eeff87294ad83adcbe5e7ad343a9b [diff] [blame] |
serial: sandbox: optimize puts Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index 0d65587..cae6c94 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c
@@ -44,8 +44,7 @@ void serial_puts(const char *str) { - while (*str) - serial_putc(*str++); + os_write(1, str, strlen(str)); } int serial_getc(void)