Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/isa Move misplaced debug code.



details:   https://anonhg.NetBSD.org/src/rev/eeaa6d57e4da
branches:  trunk
changeset: 565958:eeaa6d57e4da
user:      minoura <minoura%NetBSD.org@localhost>
date:      Sat Apr 24 13:38:36 2004 +0000

description:
Move misplaced debug code.
This should make it compile w/o pcppi and w/ CLOCKDEBUG.

diffstat:

 sys/arch/i386/isa/clock.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 766149316984 -r eeaa6d57e4da sys/arch/i386/isa/clock.c
--- a/sys/arch/i386/isa/clock.c Sat Apr 24 09:59:01 2004 +0000
+++ b/sys/arch/i386/isa/clock.c Sat Apr 24 13:38:36 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.81 2003/08/07 16:28:01 agc Exp $   */
+/*     $NetBSD: clock.c,v 1.82 2004/04/24 13:38:36 minoura Exp $       */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -121,7 +121,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.81 2003/08/07 16:28:01 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.82 2004/04/24 13:38:36 minoura Exp $");
 
 /* #define CLOCKDEBUG */
 /* #define CLOCK_PARANOIA */
@@ -158,13 +158,6 @@
 #if (NPCPPI > 0)
 #include <dev/isa/pcppivar.h>
 
-#ifdef CLOCKDEBUG
-int clock_debug = 0;
-#define DPRINTF(arg) if (clock_debug) printf arg
-#else
-#define DPRINTF(arg)
-#endif
-
 int sysbeepmatch __P((struct device *, struct cfdata *, void *));
 void sysbeepattach __P((struct device *, struct device *, void *));
 
@@ -175,6 +168,13 @@
 static pcppi_tag_t ppicookie;
 #endif /* PCPPI */
 
+#ifdef CLOCKDEBUG
+int clock_debug = 0;
+#define DPRINTF(arg) if (clock_debug) printf arg
+#else
+#define DPRINTF(arg)
+#endif
+
 void   spinwait __P((int));
 int    clockintr __P((void *, struct intrframe));
 int    gettick __P((void));



Home | Main Index | Thread Index | Old Index