summaryrefslogtreecommitdiff
path: root/components/dfs/src
diff options
context:
space:
mode:
authorgbcwbz <[email protected]>2019-07-26 19:07:05 +0800
committergbcwbz <[email protected]>2019-07-26 19:07:05 +0800
commit97c9abffd11183fa396b920baa10864ee4eaefb7 (patch)
treecca10ac3b176280752447091c461fe57195161b3 /components/dfs/src
parent767ea2ab744334a52c28403ebfcc68caf2389a2b (diff)
[components][dfs] Fix fd error in command list_fd
Diffstat (limited to 'components/dfs/src')
-rw-r--r--components/dfs/src/dfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c
index 32cbbf643b..b20de13988 100644
--- a/components/dfs/src/dfs.c
+++ b/components/dfs/src/dfs.c
@@ -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");