From: Elliott Hughes Date: Mon, 23 Mar 2015 17:39:05 +0000 (-0500) Subject: add missing space in dd output X-Git-Tag: upstream/0.6.0~154 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=845dc93c1a41d03a329d934a96d292541c0435d7;p=platform%2Fupstream%2Ftoybox.git 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. --- diff --git a/toys/pending/dd.c b/toys/pending/dd.c index a5c2452..3449104 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)