From 4246275e6e6ee5fefa073a4efc61dc2b299898fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A4=9A=E4=BB=95=E6=88=90?= <1468559561@qq.com> Date: Thu, 15 Dec 2022 19:36:05 +0800 Subject: [PATCH] add "\n" to cat --- components/dfs/src/dfs_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 1f6f0d1e29..56a28f5331 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -857,6 +857,7 @@ void cat(const char *filename) rt_device_write(out_device, 0, (void *)buffer, sizeof(buffer)); } } while (length > 0); + rt_kprintf("\n"); dfs_file_close(&fd); } -- GitLab