From 961fe7de0bc025857fdc1e8ebc64bac0e50f0e56 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 26 Mar 2022 15:45:53 +0800 Subject: [PATCH] =?UTF-8?q?list=5Ffd=20=E6=98=BE=E7=A4=BA=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E8=B7=AF=E5=BE=84=20(#5683)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/src/dfs.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- GitLab