list_fd 显示完整路径 (#5683)
This commit is contained in:
parent
bee9f4c7c4
commit
961fe7de0b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue