Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Oct 2008 21:42:26 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 150904 for review
Message-ID:  <200810032142.m93LgQKf092032@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=150904

Change 150904 by gonzo@gonzo_jeeves on 2008/10/03 21:42:02

	  Hide debug output under condition

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/intr_machdep.c#10 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/intr_machdep.c#10 (text+ko) ====

@@ -44,6 +44,12 @@
 #include <machine/md_var.h>
 #include <machine/trap.h>
 
+#ifdef INTR_DEBUG
+#define dprintf printf
+#else 
+#define dprintf(x, arg...)
+#endif  /* INTR_DEBUG */
+
 static struct intr_event *hardintr_events[NHARD_IRQS];
 static struct intr_event *softintr_events[NSOFT_IRQS];
 
@@ -72,7 +78,7 @@
 	struct intr_event *event;
 	int error;
 
-	printf("Establish HARD IRQ %d: filt %p handler %p arg %p\n",
+	dprintf("Establishing HARD IRQ %d: filt %p handler %p arg %p\n",
 	    irq, filt, handler, arg);
 	/*
 	 * We have 6 levels, but thats 0 - 5 (not including 6)
@@ -112,7 +118,7 @@
 	struct intr_event *event;
 	int error;
 
-	printf("Establish SOFT IRQ %d: filt %p handler %p arg %p\n",
+	dprintf("Establishing SOFT IRQ %d: filt %p handler %p arg %p\n",
 	    irq, filt, handler, arg);
 	if (irq < 0 || irq > NSOFT_IRQS)
 		panic("%s called for unknown hard intr %d", __func__, irq);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810032142.m93LgQKf092032>