4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 12:44:30 +08:00

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

This commit is contained in:
gbcwbz 2019-07-26 19:07:05 +08:00
parent 767ea2ab74
commit 97c9abffd1

View File

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