!476 在内核提示No idle TCB时,增加打印当前系统任务信息,以方便问题定位。

Merge pull request !476 from zhangfanfan2/master
This commit is contained in:
openharmony_ci 2021-07-31 09:19:41 +00:00 committed by Gitee
commit f85c27de59
1 changed files with 3 additions and 0 deletions

View File

@ -599,6 +599,9 @@ LITE_OS_SEC_TEXT LosTaskCB *OsGetFreeTaskCB(VOID)
if (LOS_ListEmpty(&g_losFreeTask)) { if (LOS_ListEmpty(&g_losFreeTask)) {
SCHEDULER_UNLOCK(intSave); SCHEDULER_UNLOCK(intSave);
PRINT_ERR("No idle TCB in the system!\n"); PRINT_ERR("No idle TCB in the system!\n");
#ifdef LOSCFG_DEBUG_VERSION
(VOID)OsShellCmdTskInfoGet(OS_ALL_TASK_MASK, NULL, OS_PROCESS_INFO_ALL);
#endif
return NULL; return NULL;
} }