!652 fix:告警修复

Merge pull request !652 from Zhaotianyu/0322codex_fix_2
This commit is contained in:
openharmony_ci 2022-03-22 13:56:49 +00:00 committed by Gitee
commit 2d9e476c0b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -558,7 +558,7 @@ u32_t OsShellPing(int argc, const char **argv)
return LOS_NOK;
}
parg = (u32_t *)malloc(4 * sizeof(int));
parg = (u32_t *)malloc(4 * sizeof(int)); /* 4: number of args */
if (parg == NULL) {
return LOS_NOK;
}
@ -577,7 +577,7 @@ u32_t OsShellPing(int argc, const char **argv)
stPingTask.pfnTaskEntry = (TSK_ENTRY_FUNC)ping_cmd;
stPingTask.uwStackSize = LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE;
stPingTask.pcName = "ping_task";
stPingTask.usTaskPrio = 8; /* higher than shell */
stPingTask.usTaskPrio = 8; /* 8: higher than shell */
stPingTask.uwResved = LOS_TASK_STATUS_DETACHED;
stPingTask.uwArg = (UINTPTR)parg;
ret = LOS_TaskCreate((UINT32 *)(&ping_taskid), &stPingTask);