fix: 告警修复

Signed-off-by: arvinzzz <zhaotianyu9@huawei.com>
Change-Id: I4c69ab116920db527b39070038d36e7f0bd4e331
This commit is contained in:
arvinzzz 2022-03-22 21:36:16 +08:00
parent 0e2dded346
commit 637de91170
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);