PERFORCE change 150904 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Oct 3 21:42:27 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=150904

Change 150904 by gonzo at 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);


More information about the p4-projects mailing list