Explorar o código

add "\n" to cat

褚仕成 %!s(int64=3) %!d(string=hai) anos
pai
achega
4246275e6e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      components/dfs/src/dfs_file.c

+ 1 - 0
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);
 }