projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbe2538
)
efi_stub: Move carriage return before line feed in putc()
author
Bin Meng
<bmeng.cn@gmail.com>
Fri, 18 Mar 2016 06:59:03 +0000
(23:59 -0700)
committer
Tom Rini
<trini@konsulko.com>
Sun, 27 Mar 2016 13:12:25 +0000
(09:12 -0400)
A carriage return needs to execute before a line feed.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
lib/efi/efi_stub.c
patch
|
blob
|
history
diff --git
a/lib/efi/efi_stub.c
b/lib/efi/efi_stub.c
index e13870931e9be33421e2af62fa1917ee7aeded11..8b4bb4e78fecb76c8099de66468a39ff3bdb0874 100644
(file)
--- a/
lib/efi/efi_stub.c
+++ b/
lib/efi/efi_stub.c
@@
-65,6
+65,9
@@
void _debug_uart_init(void)
void putc(const char ch)
{
+ if (ch == '\n')
+ putc('\r');
+
if (use_uart) {
NS16550_t com_port = (NS16550_t)0x3f8;
@@
-74,8
+77,6
@@
void putc(const char ch)
} else {
efi_putc(global_priv, ch);
}
- if (ch == '\n')
- putc('\r');
}
void puts(const char *str)