Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/vax/vax Only print console messages about SIGSEGV a...



details:   https://anonhg.NetBSD.org/src/rev/93e8b212336a
branches:  trunk
changeset: 526237:93e8b212336a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 29 01:54:11 2002 +0000

description:
Only print console messages about SIGSEGV and SIGILL if the
kernel was built with DEBUG.

diffstat:

 sys/arch/vax/vax/trap.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 6439273b6f0e -r 93e8b212336a sys/arch/vax/vax/trap.c
--- a/sys/arch/vax/vax/trap.c   Mon Apr 29 01:41:43 2002 +0000
+++ b/sys/arch/vax/vax/trap.c   Mon Apr 29 01:54:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.69 2002/03/20 17:59:27 christos Exp $     */
+/*     $NetBSD: trap.c,v 1.70 2002/04/29 01:54:11 thorpej Exp $     */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -299,10 +299,12 @@
 #endif
        }
        if (trapsig) {
+#ifdef DEBUG
                if (sig == SIGSEGV || sig == SIGILL)
                        printf("pid %d (%s): sig %d: type %lx, code %lx, pc %lx, psl %lx\n",
                               p->p_pid, p->p_comm, sig, frame->trap,
                               frame->code, frame->pc, frame->psl);
+#endif
                KERNEL_PROC_LOCK(p);
                trapsignal(p, sig, frame->code);
                KERNEL_PROC_UNLOCK(p);



Home | Main Index | Thread Index | Old Index