mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 20:48:41 +08:00
[components][msh]msh命令失败添加打印日志
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user