Skip to content

Commit 961fe7d

Browse files
authored
list_fd 显示完整路径 (#5683)
1 parent bee9f4c commit 961fe7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/dfs/src/dfs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ int list_fd(void)
548548
else rt_kprintf("%-8.8s ", "unknown");
549549
rt_kprintf("%3d ", fd->ref_count);
550550
rt_kprintf("%04x ", fd->magic);
551+
if (fd->fs && fd->fs->path && rt_strlen(fd->fs->path) > 1)
552+
{
553+
rt_kprintf("%s", fd->fs->path);
554+
}
551555
if (fd->path)
552556
{
553557
rt_kprintf("%s\n", fd->path);

0 commit comments

Comments
 (0)