[components][msh]msh命令失败添加打印日志
This commit is contained in:
parent
f61c7085f7
commit
5b64870507
|
@ -557,6 +557,10 @@ int msh_exec(char *cmd, rt_size_t length)
|
|||
*/
|
||||
if (_msh_exec_cmd(cmd, length, &cmd_ret) == 0)
|
||||
{
|
||||
if(cmd_ret < 0)
|
||||
{
|
||||
rt_kprintf("%s: command failed %d.\n", cmd, cmd_ret);
|
||||
}
|
||||
return cmd_ret;
|
||||
}
|
||||
#ifdef DFS_USING_POSIX
|
||||
|
|
Loading…
Reference in New Issue