提交 cea61291 编写于 作者: 还_没_想_好's avatar 还_没_想_好

[components][dfs]修复list_fd打印乱码的问题

上级 6f8c6ac0
......@@ -540,7 +540,7 @@ int list_fd(void)
{
struct dfs_fd *fd = fd_table->fds[index];
if (fd != RT_NULL)
if (fd && fd->fops)
{
rt_kprintf("%2d ", index);
if (fd->type == FT_DIRECTORY) rt_kprintf("%-7.7s ", "dir");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册