1*1fe5f90dScgd /* $NetBSD: panic_putstr.c,v 1.1 1999/04/02 03:23:49 cgd Exp $ */
2*1fe5f90dScgd
3*1fe5f90dScgd /*
4*1fe5f90dScgd * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
5*1fe5f90dScgd *
6*1fe5f90dScgd * Redistribution and use in source and binary forms, with or without
7*1fe5f90dScgd * modification, are permitted provided that the following conditions
8*1fe5f90dScgd * are met:
9*1fe5f90dScgd * 1. Redistributions of source code must retain the above copyright
10*1fe5f90dScgd * notice, this list of conditions and the following disclaimer.
11*1fe5f90dScgd * 2. Redistributions in binary form must reproduce the above copyright
12*1fe5f90dScgd * notice, this list of conditions and the following disclaimer in the
13*1fe5f90dScgd * documentation and/or other materials provided with the distribution.
14*1fe5f90dScgd * 3. All advertising materials mentioning features or use of this software
15*1fe5f90dScgd * must display the following acknowledgement:
16*1fe5f90dScgd * This product includes software developed by Christopher G. Demetriou
17*1fe5f90dScgd * for the NetBSD Project.
18*1fe5f90dScgd * 4. The name of the author may not be used to endorse or promote products
19*1fe5f90dScgd * derived from this software without specific prior written permission
20*1fe5f90dScgd *
21*1fe5f90dScgd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22*1fe5f90dScgd * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23*1fe5f90dScgd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24*1fe5f90dScgd * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25*1fe5f90dScgd * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26*1fe5f90dScgd * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*1fe5f90dScgd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*1fe5f90dScgd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*1fe5f90dScgd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30*1fe5f90dScgd * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*1fe5f90dScgd */
32*1fe5f90dScgd
33*1fe5f90dScgd #include <lib/libsa/stand.h>
34*1fe5f90dScgd #include "common.h"
35*1fe5f90dScgd
36*1fe5f90dScgd void
panic(const char * fmt,...)37*1fe5f90dScgd panic(const char *fmt, ...)
38*1fe5f90dScgd {
39*1fe5f90dScgd putstr("panic: ");
40*1fe5f90dScgd putstr(fmt); /* not a great attempt, but something */
41*1fe5f90dScgd _rtt();
42*1fe5f90dScgd }
43