subr_prf.c (2438fbba14a31d56b0f347b37677b0eb9744b8a2) subr_prf.c (a8c5fef5e6b0f84c80aca77643e10ea081248d3d)
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
1/*-
2 * Copyright (c) 1986, 1988, 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94
39 * $Id: subr_prf.c,v 1.33 1996/03/23 21:41:00 jkh Exp $
39 * $Id: subr_prf.c,v 1.34 1996/03/25 17:06:34 jkh Exp $
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/reboot.h>
47#include <sys/msgbuf.h>

--- 8 unchanged lines hidden (view full) ---

56#include <machine/cons.h>
57
58/*
59 * Note that stdarg.h and the ANSI style va_start macro is used for both
60 * ANSI and traditional C compilers.
61 */
62#include <machine/stdarg.h>
63
40 */
41
42#include "opt_ddb.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/reboot.h>
47#include <sys/msgbuf.h>

--- 8 unchanged lines hidden (view full) ---

56#include <machine/cons.h>
57
58/*
59 * Note that stdarg.h and the ANSI style va_start macro is used for both
60 * ANSI and traditional C compilers.
61 */
62#include <machine/stdarg.h>
63
64#if defined(DDB) || defined (KGDB)
64#if defined(DDB)
65#ifdef DDB_UNATTENDED
66 static int debugger_on_panic = 0;
67#else
68 static int debugger_on_panic = 1;
69#endif
70
71SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW,
72 &debugger_on_panic, 0, "");

--- 42 unchanged lines hidden (view full) ---

115 panicstr = fmt;
116
117 printf("panic: ");
118 va_start(ap, fmt);
119 vprintf(fmt, ap);
120 va_end(ap);
121 printf("\n");
122
65#ifdef DDB_UNATTENDED
66 static int debugger_on_panic = 0;
67#else
68 static int debugger_on_panic = 1;
69#endif
70
71SYSCTL_INT(_debug, OID_AUTO, debugger_on_panic, CTLFLAG_RW,
72 &debugger_on_panic, 0, "");

--- 42 unchanged lines hidden (view full) ---

115 panicstr = fmt;
116
117 printf("panic: ");
118 va_start(ap, fmt);
119 vprintf(fmt, ap);
120 va_end(ap);
121 printf("\n");
122
123#if defined(DDB) || defined (KGDB)
124 if (debugger_on_panic) {
125#ifdef KGDB
126 kgdb_panic();
127#endif
128#ifdef DDB
123#if defined(DDB)
124 if (debugger_on_panic)
129 Debugger ("panic");
130#endif
125 Debugger ("panic");
126#endif
131 }
132#endif
133 boot(bootopt);
134}
135
136/*
137 * Warn that a system table is full.
138 */
139void
140tablefull(tab)

--- 526 unchanged lines hidden ---
127 boot(bootopt);
128}
129
130/*
131 * Warn that a system table is full.
132 */
133void
134tablefull(tab)

--- 526 unchanged lines hidden ---