mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-12 12:46:00 +00:00
Merge pull request #142 from athoelke/at/fix-console_putc
Remove broken assertion in console_putc()
This commit is contained in:
commit
c2c5ee2d83
@ -71,7 +71,12 @@ void console_init(unsigned long base_addr)
|
||||
|
||||
int console_putc(int c)
|
||||
{
|
||||
assert(uart_base);
|
||||
/* If the console has not been initialized then return an error
|
||||
* code. Asserting here would result in recursion and stack
|
||||
* exhaustion
|
||||
*/
|
||||
if (!uart_base)
|
||||
return -1;
|
||||
|
||||
if (c == '\n') {
|
||||
WAIT_UNTIL_UART_FREE(uart_base);
|
||||
|
Loading…
Reference in New Issue
Block a user