mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-08 14:43:04 +08:00
add "\n" to cat
This commit is contained in:
1 parent
ee632c21a8
commit
4246275e6e
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user