PERFORCE change 90936 for review

Alan Cox alc at FreeBSD.org
Thu Feb 2 13:29:14 PST 2006


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

Change 90936 by alc at alc_home on 2006/02/02 21:29:10

	Create the sysctl debug.promotion for controlling the printing of diagnostic
	messages.

Affected files ...

.. //depot/projects/superpages/src/sys/amd64/amd64/pmap.c#8 edit

Differences ...

==== //depot/projects/superpages/src/sys/amd64/amd64/pmap.c#8 (text+ko) ====

@@ -145,7 +145,10 @@
 #include <machine/smp.h>
 #endif
 
-#define	DPRINTF(x)	do { if (0) printf x; } while (0)
+static int debug_promotion;
+SYSCTL_INT(_debug, OID_AUTO, promotion, CTLFLAG_RW, &debug_promotion, 0, "");
+
+#define	DPRINTF(x)	do { if (debug_promotion) printf x; } while (0)
 
 #ifndef PMAP_SHPGPERPROC
 #define PMAP_SHPGPERPROC 200


More information about the p4-projects mailing list