diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-10-26 00:20:39 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-03 22:35:12 +0100 |
commit | 5778d54afc99b6a9321acf2d8b5ad87d246008dc (patch) | |
tree | 6090f0252a36e5afd15f922b42ee18a2b50a3470 /drivers/serial | |
parent | ed0fc4b172de0aae51055ae8e17c6593314c6ca2 (diff) | |
download | u-boot-imx-5778d54afc99b6a9321acf2d8b5ad87d246008dc.zip u-boot-imx-5778d54afc99b6a9321acf2d8b5ad87d246008dc.tar.gz u-boot-imx-5778d54afc99b6a9321acf2d8b5ad87d246008dc.tar.bz2 |
serial: sandbox: optimize puts
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/sandbox.c | 3 |
1 files changed, 1 insertions, 2 deletions
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_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) |