From 7be035e7c7f7b812e7be61d56b5b1383afbcac16 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 29 Apr 2002 01:54:11 +0000 Subject: [PATCH] Only print console messages about SIGSEGV and SIGILL if the kernel was built with DEBUG. --- sys/arch/vax/vax/trap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c index d81393ff8d20..ef267a078117 100644 --- a/sys/arch/vax/vax/trap.c +++ b/sys/arch/vax/vax/trap.c @@ -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 @@ if(faultdebug)printf("trap accflt type %lx, code %lx, pc %lx, psl %lx\n", #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);