summaryrefslogtreecommitdiff
path: root/bin/dd/misc.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-12-07 12:37:11 +0000
committerBruce Evans <bde@FreeBSD.org>1998-12-07 12:37:11 +0000
commitf58a6c7a68faee734e0780cc816643ab0493b9a8 (patch)
treece8d873e388acdfd675d7998b951aa8f4ae7d7b2 /bin/dd/misc.c
parent3b53d3803e4824def99638e370f15ecbb8b2dde1 (diff)
downloadsrc-test2-f58a6c7a68faee734e0780cc816643ab0493b9a8.tar.gz
src-test2-f58a6c7a68faee734e0780cc816643ab0493b9a8.zip
Notes
Diffstat (limited to 'bin/dd/misc.c')
-rw-r--r--bin/dd/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/dd/misc.c b/bin/dd/misc.c
index 6f7fcafcd2f8..00ef7aed06c9 100644
--- a/bin/dd/misc.c
+++ b/bin/dd/misc.c
@@ -40,7 +40,7 @@
static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
- "$Id: misc.c,v 1.13 1998/05/06 06:51:40 charnier Exp $";
+ "$Id: misc.c,v 1.14 1998/05/13 07:33:50 charnier Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -66,16 +66,16 @@ summary()
secs = 1e-6;
/* 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",
+ "%lu+%lu records in\n%lu+%lu records out\n",
st.in_full, st.in_part, st.out_full, st.out_part);
(void)write(STDERR_FILENO, buf, strlen(buf));
if (st.swab) {
- (void)snprintf(buf, sizeof(buf), "%u odd length swab %s\n",
+ (void)snprintf(buf, sizeof(buf), "%lu odd length swab %s\n",
st.swab, (st.swab == 1) ? "block" : "blocks");
(void)write(STDERR_FILENO, buf, strlen(buf));
}
if (st.trunc) {
- (void)snprintf(buf, sizeof(buf), "%u truncated %s\n",
+ (void)snprintf(buf, sizeof(buf), "%lu truncated %s\n",
st.trunc, (st.trunc == 1) ? "block" : "blocks");
(void)write(STDERR_FILENO, buf, strlen(buf));
}