From 8e88e765ee17296a85c5ae372471ed248ce321db Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 19 Apr 2017 11:37:40 +0200 Subject: Mini reorganization --- src/sysbin/shell/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sysbin/shell/main.c') diff --git a/src/sysbin/shell/main.c b/src/sysbin/shell/main.c index e27b4e9..3f45332 100644 --- a/src/sysbin/shell/main.c +++ b/src/sysbin/shell/main.c @@ -34,9 +34,10 @@ void cat(char* file) { while (true) { size_t r = sc_read(f, p, 128, buf); p += r; - fwrite(buf, r, 1, stdout); + fwrite(buf, 1, r, stdout); if (r < 128) break; } + printf("\n -> %d bytes\n", p); sc_close(f); } else { printf("Could not open file '%s'\n", file); -- cgit v1.2.3