Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2006 21:29:12 GMT
From:      Alan Cox <alc@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 90936 for review
Message-ID:  <200602022129.k12LTCRY022876@repoman.freebsd.org>

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

Change 90936 by alc@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



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