92af501121bdbcd3e77d24208652e2a726a71b72
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* Keith Muller of the University of California, San Diego and Lance
* Visser of Convex Computer Corporation.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)misc.c 8.2 (Berkeley) %G%";
if ((secs
-= st
.start
) == 0)
/* Use snprintf(3) so that we don't reenter stdio(3). */
(void)snprintf(buf
, sizeof(buf
),
"%u+%u records in\n%u+%u records out\n",
st
.in_full
, st
.in_part
, st
.out_full
, st
.out_part
);
(void)write(STDERR_FILENO
, buf
, strlen(buf
));
(void)snprintf(buf
, sizeof(buf
), "%u odd length swab %s\n",
st
.swab
, (st
.swab
== 1) ? "block" : "blocks");
(void)write(STDERR_FILENO
, buf
, strlen(buf
));
(void)snprintf(buf
, sizeof(buf
), "%u truncated %s\n",
st
.trunc
, (st
.trunc
== 1) ? "block" : "blocks");
(void)write(STDERR_FILENO
, buf
, strlen(buf
));
(void)snprintf(buf
, sizeof(buf
),
"%u bytes transferred in %u secs (%u bytes/sec)\n",
st
.bytes
, secs
, st
.bytes
/ secs
);
(void)write(STDERR_FILENO
, buf
, strlen(buf
));