提交 6a53e1f3 编写于 作者: A arvinzzz 提交者: Zhaotianyu

fixed 637de911 from https://gitee.com/arvinzzz/kernel_liteos_m/pulls/652

fix: 告警修复
Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
Change-Id: I4c69ab116920db527b39070038d36e7f0bd4e331
上级 c0bc99ca
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册