aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-03-23 12:39:05 -0500
committerElliott Hughes <enh@google.com>2015-03-23 12:39:05 -0500
commit845dc93c1a41d03a329d934a96d292541c0435d7 (patch)
tree39c45c7e8fa28931bd5a0594af259da09d7e1c18 /toys
parent4b77d5419a0f2f4f8fdb9ad39dceddf75305b2a1 (diff)
downloadtoybox-845dc93c1a41d03a329d934a96d292541c0435d7.tar.gz
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.
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/dd.c4
1 files changed, 2 insertions, 2 deletions
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)