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