mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-31 05:10:25 +08:00
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");
|
else rt_kprintf("%-8.8s ", "unknown");
|
||||||
rt_kprintf("%3d ", fd->ref_count);
|
rt_kprintf("%3d ", fd->ref_count);
|
||||||
rt_kprintf("%04x ", fd->magic);
|
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)
|
if (fd->path)
|
||||||
{
|
{
|
||||||
rt_kprintf("%s\n", fd->path);
|
rt_kprintf("%s\n", fd->path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user