From 845dc93c1a41d03a329d934a96d292541c0435d7 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 23 Mar 2015 12:39:05 -0500 Subject: 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. --- toys/pending/dd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys') diff --git a/toys/pending/dd.c b/toys/pending/dd.c index a5c2452e..34491048 100644 --- a/toys/pending/dd.c +++ b/toys/pending/dd.c @@ -134,9 +134,9 @@ static void summary() 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) -- cgit v1.2.3