Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev Cosmetic changes: clean up debugging ifde...



details:   https://anonhg.NetBSD.org/src/rev/7c192aeff75a
branches:  trunk
changeset: 521924:7c192aeff75a
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Feb 08 13:10:42 2002 +0000

description:
Cosmetic changes: clean up debugging ifdefs and use consistent wording
in panic messages.

diffstat:

 sys/arch/sparc/dev/ebus.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 88741bbd1894 -r 7c192aeff75a sys/arch/sparc/dev/ebus.c
--- a/sys/arch/sparc/dev/ebus.c Fri Feb 08 12:12:55 2002 +0000
+++ b/sys/arch/sparc/dev/ebus.c Fri Feb 08 13:10:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ebus.c,v 1.2 2002/01/31 11:51:25 uwe Exp $ */ 
+/*     $NetBSD: ebus.c,v 1.3 2002/02/08 13:10:42 uwe Exp $ */ 
 
 /*
  * Copyright (c) 1999, 2000 Matthew R. Green
@@ -33,10 +33,11 @@
  * EBus is documented in PCIO manual (Sun Part#: 802-7837-01).
  */
 
-#undef DEBUG
-#define DEBUG
+#if defined(DEBUG) && !defined(EBUS_DEBUG)
+#define EBUS_DEBUG
+#endif
 
-#ifdef DEBUG
+#ifdef EBUS_DEBUG
 #define        EDB_PROM        0x01
 #define EDB_CHILD      0x02
 #define        EDB_INTRMAP     0x04
@@ -368,7 +369,7 @@
        bt = (bus_space_tag_t)
                malloc(sizeof(struct sparc_bus_space_tag), M_DEVBUF, M_NOWAIT);
        if (bt == NULL)
-               panic("could not allocate ebus bus tag");
+               panic("unable to allocate ebus bus tag");
 
        memset(bt, 0, sizeof *bt);
        bt->cookie = sc;
@@ -390,7 +391,7 @@
        dt = (bus_dma_tag_t)
                malloc(sizeof(struct sparc_bus_dma_tag), M_DEVBUF, M_NOWAIT);
        if (dt == NULL)
-               panic("could not allocate ebus dma tag");
+               panic("unable to allocate ebus dma tag");
 
        memset(dt, 0, sizeof *dt);
        dt->_cookie = sc;



Home | Main Index | Thread Index | Old Index