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