diff options
| author | a1012112796 <[email protected]> | 2022-03-26 15:45:53 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-26 15:45:53 +0800 |
| commit | 961fe7de0bc025857fdc1e8ebc64bac0e50f0e56 (patch) | |
| tree | 6fa471ffbdf5822f13534a9284fe344d58117c2d /components | |
| parent | bee9f4c7c4b1ccf56170cc3d2755b815baa104da (diff) | |
list_fd 显示完整路径 (#5683)
Diffstat (limited to 'components')
| -rw-r--r-- | components/dfs/src/dfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 0299465a99..23cac5c9e9 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -548,6 +548,10 @@ int list_fd(void) else rt_kprintf("%-8.8s ", "unknown"); rt_kprintf("%3d ", fd->ref_count); rt_kprintf("%04x ", fd->magic); + if (fd->fs && fd->fs->path && rt_strlen(fd->fs->path) > 1) + { + rt_kprintf("%s", fd->fs->path); + } if (fd->path) { rt_kprintf("%s\n", fd->path); |
