/*
* In case console is off,
* panicstr contains argument to last
* call to panic.
*/
char *panicstr;

/*
* Panic is called on unresolvable
* fatal errors.
* It syncs, prints "panic: mesg" and
* then loops.
*/

panic(s)
char *s;
 {
       panicstr = s;
       update();
       printf("panic: %s\n", s);
       for(;;)
            idle();
 }