From 71a0fd4d76ac5892f2b761c8ba2745d2d8321b0e Mon Sep 17 00:00:00 2001 From: Mike Karels Date: Tue, 7 Jun 1988 21:34:31 -0800 Subject: [PATCH] not doing *anything* while waiting for input; add substate for writing maps SCCS-vsn: sys/tahoe/stand/vdformat/status.c 1.3 --- usr/src/sys/tahoe/stand/vdformat/status.c | 55 +++++++++++++---------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/usr/src/sys/tahoe/stand/vdformat/status.c b/usr/src/sys/tahoe/stand/vdformat/status.c index 3b51c4de5f..ac261df1b8 100644 --- a/usr/src/sys/tahoe/stand/vdformat/status.c +++ b/usr/src/sys/tahoe/stand/vdformat/status.c @@ -1,5 +1,5 @@ #ifndef lint -static char sccsid[] = "@(#)status.c 1.2 (Berkeley/CCI) %G%"; +static char sccsid[] = "@(#)status.c 1.3 (Berkeley/CCI) %G%"; #endif #include "vdfmt.h" @@ -51,31 +51,40 @@ status() dump_state(string) char *string; { + extern int wait_for_char; + indent(); print("%s on controller %d, drive %d.\n", string, cur.controller, cur.drive); - print("Currently accessing cylinder %d, head %d.\n", - cur.daddr.cylinder, cur.daddr.track); - print("Currently "); - switch (cur.substate) { - case sub_chk : - printf("determining drive state.\n"); - break; - case sub_fmt : - printf("formatting drive surface.\n"); - break; - case sub_vfy : - printf("verifying drive surface.\n"); - break; - case sub_rel : - printf("performing relocation operations.\n"); - break; - case sub_rcvr : - printf("recovering from hardware error.\n"); - break; - default : - printf("I don't know what is happening.\n"); - break; + if (wait_for_char) + print("Waiting for operator response.\n"); + else { + print("Currently accessing cylinder %d, head %d.\n", + cur.daddr.cylinder, cur.daddr.track); + print("Currently "); + switch (cur.substate) { + case sub_chk : + printf("determining drive state.\n"); + break; + case sub_fmt : + printf("formatting drive surface.\n"); + break; + case sub_vfy : + printf("verifying drive surface.\n"); + break; + case sub_rel : + printf("performing relocation operations.\n"); + break; + case sub_rcvr : + printf("recovering from hardware error.\n"); + break; + case sub_wmap : + printf("writing relocation map.\n"); + break; + default : + printf("I don't know what is happening.\n"); + break; + } } exdent(1); } -- 2.20.1