Skip to content

Commit 9aaedb1

Browse files
committed
fix:[dfsV1]ls在文件名太长时打印出来的文件名与大小连接在一起,无法区分
1 parent 0cf096e commit 9aaedb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dfs/dfs_v1/src/dfs_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,11 @@ void ls(const char *pathname)
830830
rt_kprintf("%-20s", dirent.d_name);
831831
if (S_ISDIR(stat.st_mode))
832832
{
833-
rt_kprintf("%-25s\n", "<DIR>");
833+
rt_kprintf(" %-25s\n", "<DIR>");
834834
}
835835
else
836836
{
837-
rt_kprintf("%-25lu\n", (unsigned long)stat.st_size);
837+
rt_kprintf(" %-25lu\n", (unsigned long)stat.st_size);
838838
}
839839
}
840840
else

0 commit comments

Comments
 (0)