提交 97c9abff 编写于 作者: G gbcwbz

[components][dfs] Fix fd error in command list_fd

上级 767ea2ab
......@@ -537,7 +537,7 @@ int list_fd(void)
if (fd && fd->fops)
{
rt_kprintf("%2d ", index);
rt_kprintf("%2d ", index + DFS_FD_OFFSET);
if (fd->type == FT_DIRECTORY) rt_kprintf("%-7.7s ", "dir");
else if (fd->type == FT_REGULAR) rt_kprintf("%-7.7s ", "file");
else if (fd->type == FT_SOCKET) rt_kprintf("%-7.7s ", "socket");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册