projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed0fc4b
)
serial: sandbox: optimize puts
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 26 Oct 2011 00:20:39 +0000
(
00:20
+0000)
committer
Wolfgang 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
patch
|
blob
|
history
diff --git
a/drivers/serial/sandbox.c
b/drivers/serial/sandbox.c
index
0d65587
..
cae6c94
100644
(file)
--- 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)