diff options
| author | gbcwbz <[email protected]> | 2019-07-26 19:07:05 +0800 |
|---|---|---|
| committer | gbcwbz <[email protected]> | 2019-07-26 19:07:05 +0800 |
| commit | 97c9abffd11183fa396b920baa10864ee4eaefb7 (patch) | |
| tree | cca10ac3b176280752447091c461fe57195161b3 | |
| parent | 767ea2ab744334a52c28403ebfcc68caf2389a2b (diff) | |
[components][dfs] Fix fd error in command list_fd
| -rw-r--r-- | components/dfs/src/dfs.c | 2 |
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"); |
