mirror of
https://xff.cz/git/u-boot/
synced 2025-09-19 09:32:07 +02:00
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>
This commit is contained in:
@@ -65,6 +65,9 @@ void _debug_uart_init(void)
|
|||||||
|
|
||||||
void putc(const char ch)
|
void putc(const char ch)
|
||||||
{
|
{
|
||||||
|
if (ch == '\n')
|
||||||
|
putc('\r');
|
||||||
|
|
||||||
if (use_uart) {
|
if (use_uart) {
|
||||||
NS16550_t com_port = (NS16550_t)0x3f8;
|
NS16550_t com_port = (NS16550_t)0x3f8;
|
||||||
|
|
||||||
@@ -74,8 +77,6 @@ void putc(const char ch)
|
|||||||
} else {
|
} else {
|
||||||
efi_putc(global_priv, ch);
|
efi_putc(global_priv, ch);
|
||||||
}
|
}
|
||||||
if (ch == '\n')
|
|
||||||
putc('\r');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void puts(const char *str)
|
void puts(const char *str)
|
||||||
|
Reference in New Issue
Block a user