list_fd 显示完整路径 (#5683)

This commit is contained in:
a1012112796 2022-03-26 15:45:53 +08:00 committed by GitHub
parent bee9f4c7c4
commit 961fe7de0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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