[U-Boot] [PATCH] serial: sandbox: optimize puts
Simon Glass
sjg at chromium.org
Wed Oct 26 18:09:36 CEST 2011
On Wed, Oct 26, 2011 at 3:20 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
Acked-by: Simon Glass <sjg at chromium.org>
> ---
> 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)
> --
> 1.7.6.1
>
>
More information about the U-Boot
mailing list