4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-19 05:51:24 +08:00

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

This commit is contained in:
tangyuxin 2018-07-20 15:30:08 +08:00
parent 6f8c6ac0dc
commit cea61291e4

View File

@ -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");