summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-19 16:09:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-06-19 16:09:36 +0000
commit9fe14424ef71505001a537287e120c69bd0eb274 (patch)
tree961e2cf32022e79f4659d93b126850f08e93cdef
parente34cb9ddf29052b10698de3578c894babee8db45 (diff)
print correct status bar; blank@fox.uni-trier.de
-rw-r--r--usr.sbin/fdformat/fdformat.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index 947add827bb..594d21a42d8 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdformat.c,v 1.5 1997/09/21 00:30:11 millert Exp $ */
+/* $OpenBSD: fdformat.c,v 1.6 1998/06/19 16:09:35 deraadt Exp $ */
/*
* Copyright (C) 1992-1994 by Joerg Wunsch, Dresden
@@ -293,7 +293,10 @@ main(argc, argv)
* Formatting.
*/
if(!quiet) {
- printf("Processing ----------------------------------------\r");
+ for (track = 0; track < fdt.tracks * fdt.heads; track++) {
+ if ((track + 1) % tracks_per_dot)
+ putchar('-');
+ }
printf("Processing ");
fflush(stdout);
}