fix: 通过g_uart_fputc_en关闭打印后,shell进程不能正常启动
console层的实现中复用g_uart_fputc_en用于关闭打印的功能,代码设计上认为 g_uart_fputc_en为0时console层未使能,导致shell进程中ioctl操作失败,shell 进程不能正常启动。 close: #I4CTY2 Signed-off-by: zff <zhangfanfan2@huawei.com> Change-Id: I0a225c1db42f2b384ad590ca05b048c4b61db99c
This commit is contained in:
parent
29df5dc1f2
commit
d21b05c0f6
|
@ -1420,8 +1420,6 @@ BOOL ConsoleEnable(VOID)
|
|||
if (g_uart_fputc_en == 0) {
|
||||
if ((g_console[CONSOLE_TELNET - 1] != NULL) && OsPreemptable()) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1538,8 +1536,6 @@ INT32 ConsoleUpdateFd(VOID)
|
|||
if (g_uart_fputc_en == 0) {
|
||||
if (g_console[CONSOLE_TELNET - 1] != NULL) {
|
||||
consoleID = CONSOLE_TELNET;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
} else if (consoleID == 0) {
|
||||
if (g_console[CONSOLE_SERIAL - 1] != NULL) {
|
||||
|
|
Loading…
Reference in New Issue