changeset 1750:8f59893165fa

add missing space in dd output Also, coreutils says "s" instead of "seconds". POSIX specifies the format of the previous two lines, but doesn't even mention this line.
author Elliott Hughes <enh@google.com>
date Mon, 23 Mar 2015 12:39:05 -0500
parents 12761285eaee
children cba1817972b8
files toys/pending/dd.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/toys/pending/dd.c	Mon Mar 23 11:49:58 2015 -0500
+++ b/toys/pending/dd.c	Mon Mar 23 12:39:05 2015 -0500
@@ -134,9 +134,9 @@
   fprintf(stderr,"%llu+%llu records in\n%llu+%llu records out\n", st.in_full, st.in_part,
       st.out_full, st.out_part);
   human_readable(toybuf, st.bytes);
-  fprintf(stderr, "%llu bytes (%s) copied,",st.bytes, toybuf);
+  fprintf(stderr, "%llu bytes (%s) copied, ",st.bytes, toybuf);
   human_readable(toybuf, st.bytes/seconds);
-  fprintf(stderr, "%f seconds, %s/s\n", seconds, toybuf);
+  fprintf(stderr, "%f s, %s/s\n", seconds, toybuf);
 }
 
 static void sig_handler(int sig)