Print some debugging information when DEBUG is set, not when TERSE is

unset.  The latter is not a "standard" definition, and was used in very
few places anyway.
This commit is contained in:
jmmv 2007-07-30 12:25:14 +00:00
parent eaf29fa688
commit 3e495310cf
4 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.8 2005/12/11 12:16:05 christos Exp $ */ /* $NetBSD: autoconf.c,v 1.9 2007/07/30 12:25:14 jmmv Exp $ */
/* /*
* Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994-1998 Mark Brinicombe.
@ -43,7 +43,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2005/12/11 12:16:05 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2007/07/30 12:25:14 jmmv Exp $");
#include "opt_md.h" #include "opt_md.h"
@ -174,15 +174,15 @@ cpu_configure()
config_rootfound("podulebus", NULL); config_rootfound("podulebus", NULL);
#endif /* NPODULEBUS */ #endif /* NPODULEBUS */
#if defined(DEBUG)
/* Debugging information */ /* Debugging information */
#ifndef TERSE
printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n", printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",
irqmasks[IPL_BIO], irqmasks[IPL_NET], irqmasks[IPL_TTY], irqmasks[IPL_BIO], irqmasks[IPL_NET], irqmasks[IPL_TTY],
irqmasks[IPL_VM]); irqmasks[IPL_VM]);
printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n", printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
irqmasks[IPL_AUDIO], irqmasks[IPL_CLOCK], irqmasks[IPL_HIGH], irqmasks[IPL_AUDIO], irqmasks[IPL_CLOCK], irqmasks[IPL_HIGH],
irqmasks[IPL_SERIAL]); irqmasks[IPL_SERIAL]);
#endif #endif /* defined(DEBUG) */
/* Time to start taking interrupts so lets open the flood gates .... */ /* Time to start taking interrupts so lets open the flood gates .... */
(void)spl0(); (void)spl0();

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.10 2005/12/11 12:17:04 christos Exp $ */ /* $NetBSD: autoconf.c,v 1.11 2007/07/30 12:25:14 jmmv Exp $ */
/* /*
* Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994-1998 Mark Brinicombe.
@ -41,7 +41,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.10 2005/12/11 12:17:04 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.11 2007/07/30 12:25:14 jmmv Exp $");
#include "opt_md.h" #include "opt_md.h"
@ -150,15 +150,15 @@ cpu_configure(void)
config_rootfound("mainbus", NULL); config_rootfound("mainbus", NULL);
#if defined(DEBUG)
/* Debugging information */ /* Debugging information */
#ifndef TERSE
printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n", printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",
footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET], footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET],
footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]); footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]);
printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n", printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK], footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK],
footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]); footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]);
#endif #endif /* defined(DEBUG) */
/* Time to start taking interrupts so lets open the flood gates .... */ /* Time to start taking interrupts so lets open the flood gates .... */
(void)spl0(); (void)spl0();

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.7 2005/12/11 12:18:20 christos Exp $ */ /* $NetBSD: autoconf.c,v 1.8 2007/07/30 12:25:14 jmmv Exp $ */
/* /*
* Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994-1998 Mark Brinicombe.
@ -43,7 +43,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.7 2005/12/11 12:18:20 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2007/07/30 12:25:14 jmmv Exp $");
#include "opt_md.h" #include "opt_md.h"
@ -96,8 +96,8 @@ cpu_configure(void)
config_rootfound("mainbus", NULL); config_rootfound("mainbus", NULL);
#if defined(DEBUG)
/* Debugging information */ /* Debugging information */
#ifndef TERSE
printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n", printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",
footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET], footbridge_imask[IPL_BIO], footbridge_imask[IPL_NET],
footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]); footbridge_imask[IPL_TTY], footbridge_imask[IPL_VM]);
@ -105,7 +105,7 @@ cpu_configure(void)
printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n", printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK], footbridge_imask[IPL_AUDIO], footbridge_imask[IPL_CLOCK],
footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]); footbridge_imask[IPL_HIGH], footbridge_imask[IPL_SERIAL]);
#endif #endif /* defined(DEBUG) */
/* Time to start taking interrupts so lets open the flood gates .... */ /* Time to start taking interrupts so lets open the flood gates .... */
(void)spl0(); (void)spl0();

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.8 2007/03/08 20:48:39 matt Exp $ */ /* $NetBSD: autoconf.c,v 1.9 2007/07/30 12:25:14 jmmv Exp $ */
/* /*
* Copyright (c) 1994-1998 Mark Brinicombe. * Copyright (c) 1994-1998 Mark Brinicombe.
@ -43,7 +43,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2007/03/08 20:48:39 matt Exp $"); __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.9 2007/07/30 12:25:14 jmmv Exp $");
#include "opt_md.h" #include "opt_md.h"
@ -195,15 +195,15 @@ cpu_configure()
ofrootfound(); ofrootfound();
#endif #endif
#if defined(DEBUG)
/* Debugging information */ /* Debugging information */
#ifndef TERSE
printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n", printf("ipl_bio=%08x ipl_net=%08x ipl_tty=%08x ipl_vm=%08x\n",
irqmasks[IPL_BIO], irqmasks[IPL_NET], irqmasks[IPL_TTY], irqmasks[IPL_BIO], irqmasks[IPL_NET], irqmasks[IPL_TTY],
irqmasks[IPL_VM]); irqmasks[IPL_VM]);
printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n", printf("ipl_audio=%08x ipl_imp=%08x ipl_high=%08x ipl_serial=%08x\n",
irqmasks[IPL_AUDIO], irqmasks[IPL_CLOCK], irqmasks[IPL_HIGH], irqmasks[IPL_AUDIO], irqmasks[IPL_CLOCK], irqmasks[IPL_HIGH],
irqmasks[IPL_SERIAL]); irqmasks[IPL_SERIAL]);
#endif #endif /* defined(DEBUG) */
/* Time to start taking interrupts so lets open the flood gates .... */ /* Time to start taking interrupts so lets open the flood gates .... */
(void)spl0(); (void)spl0();