summaryrefslogtreecommitdiff
path: root/lib/efi
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-03-17 23:59:03 -0700
committerTom Rini <trini@konsulko.com>2016-03-27 09:12:25 -0400
commit075bb5c6ea7bef0a442d5155b25b273167e67b4a (patch)
tree22dcbfee95a54d5c7fcd7974e537c554c2e3a116 /lib/efi
parentdbe253861a61f7c9407fa52dc6ddd75667b00458 (diff)
downloadu-boot-imx-075bb5c6ea7bef0a442d5155b25b273167e67b4a.zip
u-boot-imx-075bb5c6ea7bef0a442d5155b25b273167e67b4a.tar.gz
u-boot-imx-075bb5c6ea7bef0a442d5155b25b273167e67b4a.tar.bz2
efi_stub: Move carriage return before line feed in putc()
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>
Diffstat (limited to 'lib/efi')
-rw-r--r--lib/efi/efi_stub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/efi/efi_stub.c b/lib/efi/efi_stub.c
index e138709..8b4bb4e 100644
--- 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)